html

来源:互联网 发布:淘宝借贷平台 编辑:程序博客网 时间:2024/06/06 05:25

css实现div悬浮层,始终停留在浏览器的最下方,不随页面的滚动条滚动改变位置或消失


<div class="test"></div><style>.test{ position:fixed; bottom:0; left:0;width:100%;height:30px;background-color:red;}</style>

选用position:fixed 使得div始终在下方

0 0
原创粉丝点击