/*调节元素透明度的函数*/ function setOpacity(elem, level) { //IE处理透明度 if (elem.filters) { elem.style.filters = 'alpha(opacity=' + level + ')'; } else { elem.style.opacity = level / 100; } }
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/10037.html
/*调节元素透明度的函数*/ function setOpacity(elem, level) { //IE处理透明度 if (elem.filters) { elem.style.filters = 'alpha(opacity=' + level + ')'; } else { elem.style.opacity = level / 100; } }
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/10037.html