将html分出一部分,所有内容在固定大小的框中显示,多出的部分多出流动条
.contentnotice{margin:auto!important ;width:100%;height:90%;overflow:auto;}
.show_notice_dialog{display:none;margin:0!important ;z-index:20;position:absolute;left:100px;top:-240px;width:800px;height:500px;background:white;border:1pxsolid#dbdbdb;}
/*清浮动*/
.zldx_clearfix:after{display:block;content:"";clear:both;height:0;line-height:0;visibility:hidden;}
.zldx_clear{clear:both;}
其中 clear : both ;的意思就是清除所有的样式。 !important 就是说优先级最高,在所有的相同样式中, overflow:auto;overflow属性指定如果内容溢出一个元素的框,会发生什么。
这就是流动条的关键啊!!
<span>这个签它里面的内容应该是
<p>也是下面这个
b=document.getElementById("title5").innerText;
不是value
控制这个div中的流动条的位置
document.getElementById('container').scrollTop=i*46