我有以下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