最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
ie6浏览器不支持position:fixed解决办法
时间:2022-06-25 09:40:37 编辑:袖梨 来源:一聚教程网
滚动条是body的滚动,固定元素是相对body定位,那么把它设置窗口那么高,不就一直是在窗口那个位置了?
代码如下 | 复制代码 |
|
自家用法介绍
代码如下 | 复制代码 |
html,html body {background-image:url(about:blank);background-attachment:fixed;}/* 修正IE6不支持position:fixed的bug */ |
推荐淘宝网用的方法
代码如下 | 复制代码 |
*html {/* 只有IE6支持 */ |
相关文章
- 支付宝蚂蚁森林神奇海洋9月19日答案 09-21
- 生吃鱼胆能明目吗 09-21
- “天下第一剑”是越王勾践剑还是西周青铜剑 09-21
- 蚂蚁新村宠物烘焙师是什么 09-21
- 职业小知识最新答案9.20 09-21
- 蚂蚁新村今天正确答案9.20 09-21