光标就算放在顶部的搜索栏,滚动鼠标的滚轮,页面仍然会滚动
怎么实现,要完全兼容,哪怕是IE6
回复讨论(解决方案)
you can do it like this.
无标题文档 body{margin:0;height:2000px;}input{float:left;padding:0;margin:0;}.box{height:40px;padding:10px 0;background:#ccc; text-align:center; position:fixed;_position:absolute;width:100%;_top:expression(eval(document.documentElement.scrollTop));}.search{height:100%;width:410px;margin:0 auto;}.search .text{width:300px;height:28px;padding:4px 0 4px 6px;border:solid 2px blue;font-size:14px;line-height:30px;}.search .btn{background:blue;border:none;height:40px;width:100px;padding:0 10px;}
查看更多关于页面中固定区域怎么做?_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did104819