获得指定元素的透明度值

function getOpacity(e) {
if (!e.filters) {
if (e.style.opacity) {
return parseFloat(e.style.opacity) * 100;
}
}
try {
return e.filters.item('alpha').opacity;
} catch (o) {
return 100;
}
}

posted @ 2014-12-09 08:46  定格的有天  Views(151)  Comments(0Edit  收藏  举报