最近在處理瀏覽器對img
標籤的圖片是否會根據exif
信息自動旋轉的問題, 發現了這個站點: https://caniuse.com/
比如 image-orientation
, https://caniuse.com/?search=image-orientation 這個頁面就比mozilla的 https://developer.mozilla.org/en-US/docs/Web/CSS/image-orientation#browser_compatibility 更豐滿一些.
如果瀏覽器的CSS支持 image-orientation
, 則可以設置爲none
來關閉自動旋轉.
截止目前, 只有
firefox 90
版本支持from-image
屬性,chrome 91
還不支持