摘要: currentStyle和getComputedStyle来获取外部样式 通过document.getElementById(id).style.XXX就可以获取到XXX的值,但意外的是,这样做只能取到通过内嵌方式设置的样式值,即style属性里面设置的值 var mydiv = document. 阅读全文
posted @ 2017-09-25 14:31 lanyan 阅读(156) 评论(0) 推荐(0) 编辑
摘要: html 代码: css代码: 阅读全文
posted @ 2017-09-25 11:18 lanyan 阅读(297) 评论(0) 推荐(0) 编辑
摘要: // 简单的ajax对象 var myAjax = { // XMLHttpRequest IE7+, Firefox, Chrome, Opera, Safari ; ActiveXObject IE6, IE5 xhr: window.XMLHttpRequest ? new XMLHttpRequest() : new ... 阅读全文
posted @ 2017-09-25 11:11 lanyan 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 转自:https://my.oschina.net/guopengfei/blog/534891 阅读全文
posted @ 2017-09-25 10:52 lanyan 阅读(6640) 评论(0) 推荐(0) 编辑
摘要: 转自:http://yuncode.net/code/c_50796e1da2e7863 阅读全文
posted @ 2017-09-25 10:47 lanyan 阅读(5101) 评论(0) 推荐(0) 编辑