我有以下HTML和CSS代码,请告诉我为什么它可以在FF,IE9,jsfiddle上运行,而不是在谷歌浏览器的实时网站上运行?CSS背景不适用于Chrome
HTML:
<p>
<a href="http://tambnguyen.com/wp-content/uploads/2012/05/256501557_1280.jpg">
<span class="img_wrapper">
<img class="tn" src="http://tambnguyen.com/wp-content/uploads/2012/05/256501557_1280-580x326.jpg"/>
</span>
</a>
</p>
CSS:
img.with-borders, img.tn {
margin: 5px 0 0 0;
padding: 8px;
background: #f1f1f1;
border: solid #777;
border-width: 1px 2px 2px 1px;
box-shadow: 0 15px 15px -15px rgba(0, 0, 0, 0.9);
-webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
span.img_wrapper {
background: url('http://tambnguyen.com/wp-content/themes/Polished/images/et-image-sliderleft-shadow2.png') no-repeat left bottom, url('http://tambnguyen.com/wp-content/themes/Polished/images/et-image-sliderright-shadow2.png') no-repeat right bottom;
padding-bottom: 14px;
}
img.with-borders:hover, img.tn:hover, img.post_img:hover, div.related_post_thumb:hover {
border-color: #000;
filter: alpha(opacity=80);
opacity: 0.80;
}
的的jsfiddle在这里http://jsfiddle.net/gNtea/,以及Live网站是在这里http://tambnguyen.com/4493-chemin-vert-giacomo-miceli/
谢谢
对不起,您可以提供屏幕截图?使用IE9和Chrome查看JFiddle,它们是相同的。 – mawburn
首先,转换不适用于'filter'。 – BoltClock