【发布时间】:2014-05-07 19:32:16
【问题描述】:
我无法在 ie8 浏览器中看到不透明度... 我认为这是因为 jquery 中的 not 方法.... 你们能告诉我如何解决它.. 在下面提供我的代码...
也提供我的小提琴
function soccerMatches(matches) {
var $cricket = $('.color'),
matchesIds = [],
$soccers;
$.each(matches, function(i, match) {
matchesIds.push('#cricket' + match.title);
});
$soccers = $(matchesIds.join(', '));
$cricket.not($soccers).addClass("testing1");
$soccers.css('opacity', 1);
}
.testing1 {
opacity: 0.33;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=33)";
}
【问题讨论】:
-
你没有设置 ms 过滤器...
-
您是否对 $soccers 的不透明度有问题?该变量似乎是一个字符串,而不是一个 DOM 元素。您是否有一些示例数据可以显示它的作用?
-
@Pow-Ian: 也添加了我的小提琴
-
@epascarello: 你能在我的小提琴中更新吗
标签: javascript jquery css jquery-ui javascript-events