2016年2月18日
摘要: 1.input的disabled enter your name:<input disabled></input> 2.hidden是个全局布尔属性,可以应用于任何元素. <table> <tr><th>Name</th><th>City</th></tr> <tr><td>Adam</td><td 阅读全文
posted @ 2016-02-18 17:55 北冥鱼鱼鱼 阅读(253) 评论(0) 推荐(0) 编辑
摘要: function getStyle(obj,name) { //ie获取样式信息 if(obj.currentStyle) { return obj.currentStyle[name] } //其他浏览器获取样式信息 else { return getComputedStyle(obj,false 阅读全文
posted @ 2016-02-18 15:15 北冥鱼鱼鱼 阅读(1434) 评论(0) 推荐(0) 编辑
摘要: css方法用于设置或者获取样式,如width、background等与style相关; attr用于获取元素的属性,如href、title、class等 阅读全文
posted @ 2016-02-18 11:12 北冥鱼鱼鱼 阅读(220) 评论(0) 推荐(0) 编辑
摘要: location.href为获取当前页面的地址。 location.href="http://www.baidu.com"为当前页面跳转到http://www.baidu.com location.protocol返回当前的协议,如:http:; location.hostname返回当前的主机名, 阅读全文
posted @ 2016-02-18 09:59 北冥鱼鱼鱼 阅读(386) 评论(0) 推荐(0) 编辑