CSS的固定定位
将元素放置在浏览器窗口的固定位置,拖拽窗口时元素位置不变。
类似语法:
div{
position:fixed;
top:0px;
left:0px;
right:0px;
bottom:0px;
}
转载于:https://www.cnblogs.com/surabbit/p/10940030.html
总结
- 上一篇: css样式之浮动
- 下一篇: 纯CSS实现多级菜单,兼容IE6
将元素放置在浏览器窗口的固定位置,拖拽窗口时元素位置不变。
类似语法:
div{
position:fixed;
top:0px;
left:0px;
right:0px;
bottom:0px;
}
转载于:https://www.cnblogs.com/surabbit/p/10940030.html