摘要:
function Drag(id) { var trag =document.getElementById(flag); trag.onmousedown = function (e) { var page =... 阅读全文
摘要:
除非left和top是内联样式,或者初始单独拿出来赋值,否则直接使用,得到的值就是null,都特么是坑啊,取值的时候可以用offsetLeft offsetTop clientWidth clientHeight(看情况用scrollLeft和scrollTop,offsetWidth和offset... 阅读全文
摘要:
弹出一个窗口后,后面的层不可操作点击关闭点击试试 阅读全文
摘要:
我们都有一个误区,就是认为形成 Javascript 对象的prototype chain 的 prototype 就是一个名字为 prototype 的属性,而且是可以访问的。其实,Javascript 的 prototype 和 名字为 prototype 的属性在一开始一点儿关系都没有,是两个... 阅读全文
摘要:
img - complete attributeloading...轮询不断监测img的complete属性,如果为true则表明图片已经加载完毕,停止轮询。该属性所有浏览器都支持。 阅读全文
摘要:
在实现散列布局的时候,遇到一个问题,想用自适应布局,即左右两列分别为左右浮动,中间列自适应html代码如下 对应CSS代码为:#wrap{ width: 80%; border: 1px solid #dda; height: 98px; margin: 0 auto; } #le... 阅读全文