我遇到了一个非常普遍的问题(或者在一些谷歌搜索后看起来是这样),就是IE在使用jQuery动画透明度时会同时弄乱粗体文本和透明png。
你可以在这里查看示例:http://dev.gentlecode.net/dotme/index-sample.html (显然只在IE中出现)
我看到一些博客文章说解决方法是删除 filter 属性,但我不确定如何将其应用于我正在使用的脚本,因为我从教程中得到了它,仍在学习jQuery……
脚本如下所示:
我希望有人能够检查一下,并指导我如何解决透明度问题。滤镜方法是否也可以解决我的问题,即像粗体文字一样看起来有锯齿的透明png图片边框呢?
提前感谢您的所有帮助!
你可以在这里查看示例:http://dev.gentlecode.net/dotme/index-sample.html (显然只在IE中出现)
我看到一些博客文章说解决方法是删除 filter 属性,但我不确定如何将其应用于我正在使用的脚本,因为我从教程中得到了它,仍在学习jQuery……
脚本如下所示:
$('ul.nav').each(function() {
var $links = $(this).find('a'),
panelIds = $links.map(function() { return this.hash; }).get().join(","),
$panels = $(panelIds),
$panelWrapper = $panels.filter(':first').parent(),
delay = 500;
$panels.hide();
$links.click(function() {
var $link = $(this),
link = (this);
if ($link.is('.current')) {
return;
}
$links.removeClass('current');
$link.addClass('current');
$panels.animate({ opacity : 0 }, delay);
$panelWrapper.animate({
height: 0
}, delay, function() {
var height = $panels.hide().filter(link.hash).show().css('opacity', 1).outerHeight();
$panelWrapper.animate({
height: height
}, delay);
});
return false;
});
var showtab = window.location.hash ? '[hash=' + window.location.hash + ']' : ':first';
$links.filter(showtab).click();
});
我希望有人能够检查一下,并指导我如何解决透明度问题。滤镜方法是否也可以解决我的问题,即像粗体文字一样看起来有锯齿的透明png图片边框呢?
提前感谢您的所有帮助!