摘要: <div> <h1 id = "first">first</h1> <h1 id="second">second</h1> <input type="button" onclick="test()" value="insertBefore" /> </div> <script> function test(){ var headObj = document.getElementById("f 阅读全文
posted @ 2013-06-09 14:07 楚玉 阅读(1485) 评论(0) 推荐(0) 编辑
摘要: 1.li在ie6下面高度变大,css: vertical-align:bottom;2.outerWidth(true):包含marginouterWidth(false):不包含margin参数不写默认是false3. 创建元素function createSpan(){var span = document.createElement("span");span.innerHTML = "显哥哥你大爷";document.getElementById("main").appendChild(span);//此处span是变量,不需要 阅读全文
posted @ 2013-06-09 13:40 楚玉 阅读(147) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2013-06-09 13:39 楚玉 阅读(0) 评论(0) 推荐(0) 编辑