![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
文章平均质量分 71
CammileLiu
好好学习,天天向上!
展开
-
带关闭按钮的右下角图片广告
带关闭按钮的右下角图片广告 //定位层的函数 function posRightCorner() { //top放到 高度-120 的位置,120大概就是div的高度 ad.style.top = document.body.scrollTop + document.body.clientHeight-120; //left放到 宽度-200 的位置,200大概就原创 2015-08-17 11:01:40 · 2428 阅读 · 0 评论 -
js 秒表计时器(开始,停止,清零)
var c=0var tfunction timedCount() { document.getElementById('txt').value=c c=c+1 t=setTimeout("timedCount()",1000) }function stopCount() { clearTimeout(t) }原创 2015-08-16 16:25:25 · 17597 阅读 · 2 评论 -
div位置定位问题
position:static所有元素的默认定位都是:position:static,这意味着元素没有被定位,而且在文档中出现在它应该在的位置。一般来说,不用指定 position:static,除非想要覆盖之前设置的定位。 #div-1 { position:static; } position:relative 如果设定 positi转载 2015-08-17 10:56:11 · 782 阅读 · 0 评论