本章节介绍一下如何让通过定位方式让一个div定位于网页的一个位置,无论是否拖动滚动条。
代码实例如下:
蚂蚁部落 body{ margin:0px auto; height:1000px;} #fixedLayer{ position:fixed; left:40px; top:10px; width:100px; line-height:30px; background:#FC6; border:1px solid #F90; }蚂蚁部落
查看更多关于通过定位实现的div块网页中固定效果_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did110581