【发布时间】:2017-06-02 18:44:44
【问题描述】:
我有一个应用程序,用户可以通过手机上传图像。当我在我的 html 文档中使用相同的图像时,它没有正确显示。它显示为自动旋转。但是,我尝试了 image-orientation 属性,它在 moz 中工作但在 chrome 中不工作。我使用了下面的代码
.xyz{
image-orientation:from-image
}
<img src="image/02020274842547347547357" class="xyz">
【问题讨论】:
-
developer.mozilla.org/en-US/docs/Web/CSS/… 目前只有 FF 支持。
-
有没有办法在谷歌浏览器中做同样的事情
-
我认为你必须阅读 EXIF through js,然后使用 CSS
transform : rotate()... -
谢谢,有帮助
标签: html css image google-chrome exif