问题
And which browsers require a prefix: -moz-background-size
, -webkit-background-size
, and similar?
Thanks!
回答1:
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.
回答2:
See https://developer.mozilla.org/en/CSS/background-size
Chrome supports it directly since 3.0; Firefox since 3.6; IE since 9.
来源:https://stackoverflow.com/questions/6547916/how-widely-supported-are-background-size-and-background-origin