这一点不起作用:
$(this).stop().fadeTo('slow', 0.4, function() {
$(this).addClass('hidden')
});
所以我测试了这个:
$(this).css('opacity',0.3);
在 IE8 中没有成功:/(IE7 + Chrom + FF + Safari 一切正常 - 调试 js 一切正常......)
所以我去谷歌搜索问题并尝试了这个:
$.fn.customFadeTo = function(speed,to,callback) {
return this.animate({opacity: to}, speed, function() {
if (to == 1 && jQuery.browser.msie)
this.style.removeAttribute('filter');
if (jQuery.isFunction(callback))
callback();
});
};
这(CSS ...):
display:inline-block;
在 IE8 中仍然没有成功...任何帮助???
更新:这个接缝工作:
$(this).children('img').stop().fadeTo('slow', 0, function() {});
所以这是图像的问题
更新: DOM 元素 -> $(this) 指
<a class="alle-referenzen referenzenDetailLink" href="webdesign-referenzen-hotel-chesa-randolina" title="Hotel Chesa Randolina">
<span>
<b>Hotel Chesa Randolina</b><br />
Webdesign, Blog, CMS, Programmierung, Suchmaschinenoptimierung
</span>
<img src="/images/content/Referenzen/HotelRandolina/Website_Hotel-Randolina.jpg" alt="Hotel Chesa Randolina" />
<img class="out" src="/images/content/Referenzen/HotelRandolina/Logo_Hotel-Randolina.jpg" alt="Hotel Chesa Randolina" />
</a>