随笔分类 -  css/html

摘要:var tt = document.getElementById(id); var ttop = tt.offsetTop;//绝对位置 left 的距离 var thei = tt.clientHeight; var tleft = tt.offsetLeft;//绝对位置距离页面的 top的高 while (tt = tt.offsetParent) { ttop += tt.offsetTop; tleft += tt.offsetLeft; }var treebg=document.getElementById("test"); treebg.style.top = 阅读全文
posted @ 2013-03-04 16:31 zx132797 阅读(573) 评论(0) 推荐(0) 编辑
摘要:只需要设置CSS样式:outline: none;就可以屏蔽谷歌浏览器的高亮显示。 阅读全文
posted @ 2012-12-03 17:19 zx132797 阅读(288) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示