How widely supported are background-size and background-origin?
And which browsers require a prefix: -moz-background-size
, -webkit-background-size
, and similar?
Thanks!
See CanIUse.com for a table showing browser support for this feature for all browsers and versions in common use.
Short answer: IE6/7/8 don't support it. Firefox 3.6 requires -moz-
prefix. Older versions of safari might have issues. Everywhere else it should work just fine.
See https://developer.mozilla.org/en/CSS/background-size
Chrome supports it directly since 3.0; Firefox since 3.6; IE since 9.
精彩评论