11 2012 档案
摘要:一、关于floatie:div.styleFloatothers:div.cssFloat二、关于动态计算样式ie:div.currentstyleothers:document.defaultView.getComputedStyle(div,null) //不需要伪元素信息时,第二个参数为null,第二个参数伪元素字符串如,‘after:’三、关于样式表1、获取样式表styleSheet对象ie:var link=document.getelementbyTagName('link')[0];var sheet=link.styleSheet;others:var link
阅读全文
摘要:关于透明度:1、以下两种设置的效果等价:<div id="d1" style="width: 100px;height:100px;background-color:rgb(12,45,80);opacity: 0.5;"></div><br><div id="d2" style="width: 100px;height:100px;background-color:rgba(12,45,80,0.5);"></div>2.opacity:0与backgr
阅读全文

浙公网安备 33010602011771号