摘要: 检测浏览器是否支持DOM1级CSS能力或DOM2级CSS能力,IE上并不精确alert('DOM1级CSS能力:'+document.implementation.hasFeature('CSS','2.0'));alert('DOM2级CSS能力:'+document.implementation 阅读全文
posted @ 2017-08-21 17:16 耿鑫 阅读(131) 评论(0) 推荐(0) 编辑
摘要: <table border="1" width="300"> <caption>人员表</caption> <thead> <tr> <th>姓名</th> <th>性别</th> <th>年龄</th> </tr> </thead> <tbody> <tr> <td>张三</td> <td>男</ 阅读全文
posted @ 2017-08-21 16:00 耿鑫 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 1:表示判断元素节点2:表示判断属性节点3:表示判断文本节点alert(Node.ELEMENT_NODE); //表示元素节点的类型值 1alert(Node.TEXT_NODE); //表示文本节点的类型值 3if(xxx.nodeType Node.ELEMENT_NODE)if(xxx.no 阅读全文
posted @ 2017-08-21 11:07 耿鑫 阅读(119) 评论(0) 推荐(0) 编辑