标签:blog class code java color javascript
1 |
<br> /**<br> * 给元素增加遮罩层<br> * @param maskLayer 遮罩层<br> * @param maskObj 被遮罩元素<br> */ <br> function
doMask(maskLayer,maskObj){<br> maskLayer.css( "filter" , "alpha(opacity=60)" );<br> maskLayer.css( "background-color" , "#777" );<br> maskLayer.css( "z-index" , "1002" );<br> maskLayer.css( "opacity" , "0.5" );<br> maskLayer.css( "-moz-opacity" , "0.5" );<br> maskLayer.css( "position" , "absolute" );<br> maskLayer.css( "width" ,maskObj.width());<br> maskLayer.css( "height" ,maskObj.height());<br> maskLayer.css( "left" ,maskObj.position().left+1);<br> maskLayer.css( "top" ,maskObj.position().top+1);<br>} |
标签:blog class code java color javascript
原文地址:http://www.cnblogs.com/svvs/p/3703371.html