我需要一些帮助,以确保是否对此没有任何解决方案:
我在html元素中进行了背景转换。该转换仅适用于最新的Chrome,Safari和Opera。IE10和FFx中没有。似乎是因为bkg在html元素中,对吗?我尝试了完整的sintax表示法,没有速记,没关系。有谁可以确认原因,并且有人知道我是否可以做一些不同的事情才能在IE10和FFx中工作?谢谢!
(bkg随js函数changeimage不断变化)
html {
background:#000000;
background: url(img/bkg_banana.jpg) no-repeat fixed right;
-webkit-background-size: cover;
background-size: cover;
-webkit-transition: background 0.5s ease;
transition: background 0.5s ease;
}
要使这些样式同时影响Firefox和IE,您需要添加-moz-(对于Firefox)和-ms-(对于Internet Explorer)。例如,
html {
-moz-background-size:cover;
-ms-background-size:cover;
-webkit-background-size:cover;
background-size:cover;
}
等等...
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句