最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

uploads - My image rotate 90 degree

programmeradmin2浏览0评论

For some reason, my pictures after being published on the site are turned upside down by 90 degrees, and everything looks fine in the admin panel. How to fix it ?

For some reason, my pictures after being published on the site are turned upside down by 90 degrees, and everything looks fine in the admin panel. How to fix it ?

Share Improve this question asked Feb 12, 2020 at 5:50 kaizerkaizer 1 2
  • Can you please provide a link to the website? If you can't provide a link - then can you please provide the CSS from the inspector? It's hard to come up with a solution, if we can't see the problem. It may be a CSS problem - please look out for "transform: rotate();" in your CSS for the specific element. Further information on this: w3schools/cssref/css3_pr_transform.asp – WPTricksDK Commented Feb 12, 2020 at 10:11
  • Upside down would be 180°. If it is 90°, are all images rotated in the same direction? – Chenmunka Commented Feb 12, 2020 at 10:12
Add a comment  | 

1 Answer 1

Reset to default -1

You can add jquery .css() method

jQuery('.image_class_name').css('transform','rotate(-90deg)');

change the degree as you want.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论