我试图在悬停时找到这个可怕的灰色 png 的解决方案(这意味着透明的黄色,它似乎只在 IE 中显示为这样。我尝试的任何方法似乎都不起作用。任何帮助或提示都会非常方便。
这是jQuery。
$('#header').hover(
function() {
$("#slideshow_bg").stop().animate({"opacity": "1"}, "fast");
},
function() {
$("#slideshow_bg").stop().animate({"opacity": "0"}, "fast");
});
});
这是html
<div id="header">
<div id="ql_container" >
<span class="qltext">Our Systems</span>
<div id="slidetabs">
<a href="#">Therm Masonry</a>
<a href="#">Concrete Block</a>
<a href="#c">Precast Concrete</a>
</div>
</div>
<!-- container for the slides -->
<div class="images" style="float:left;">
<!-- first slide -->
<div class="slides" style="display:; position:absolute; background-image:url(03_building/02_concrete_block/02_IMAGES/02_HeroShot_1.jpg); width:779px; height:448px;" />
<div id="slideshow_bg" style="opacity:;">
<h2>lorem ipsum</H2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam volutpat mauris in dolor egestas id iaculis tortor dignissim. Duis auctor dui vitae augue viverra pretium. Vestibulum ullamcorper iaculis tincidunt.</p>
<p><a href="#"> Specifications</a> | <a href="#">Details</a></p>
</div>
</div>
</div>
</div>
这是CSS
#slideshow_bg{
opacity : 0;
/* IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
/* IE 5-7 */
filter: alpha(opacity=0);
zoom:1;
width:170px;
height:398px;
padding:25px 20px 25px 20px;
position:absolute;
overflow:hidden;
background-image:url(../../images/slidesshow_desc_bg.png);
_background:none;
_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../images/slidesshow_desc_bg.png',sizingMethod='crop');
}
我知道这可能看起来很乱,但是,任何帮助将不胜感激:)