Setting opacity of html elements in different browsers

后端 未结 4 1386

I need to set an HTML object\'s opacity in JavaScript in all the browsers.

In Firefox I do it with line:

imageobje         


        
4条回答
  •  甜味超标
    2020-12-15 22:34

    In chrome you just set imgobject.style.opacity=0.5; in IE imgobject.style.filter='alpha(opacity=50)'.

提交回复
热议问题