摘要:
其他方向的根据自己需求去改变border-width 阅读全文
摘要:
*html{ background-image:url(about:blank); background-attachment:fixed;}/*解决抖动问题*/.backto-top{ width:35px; height:35px; overflow: hidden; z-index:1; position:fixed; bottom:0; margin-left:964px; *+position:absolute; *+top:expression((document.compatMode?documentElement.scrollTop:document.bo... 阅读全文
摘要:
给一个HTML元素设置css属性,如1234varhead= document.getElementById("head");head.style.width = "200px";head.style.height = "70px";head.style.display = "block";这样写太罗嗦了,为了简单些写个工具函数,如1234567functionsetStyle(obj,css){for(varatr incss){obj.style[atr] = css[atr];}}varhead= docum 阅读全文