当前位置:网站首页>ie7设置overflow属性失效解决方法
ie7设置overflow属性失效解决方法
2022-07-26 09:25:00 【乌云乌云_快走开】
在项目中遇到 IE7 浏览器设置 overflow:hidden , overflow: auto; 都无效 !
父元素设置固定宽高属性并加 overflow属性 (意图使超出部分能够隐藏或者滚动), 子元素设置了position:relative 或position:absolute属性 ,ie7浏览器下超出父元素的子元素区域部分不能被隐藏掉!
解决方法:
给元素也加上position:relative属性
overflow-y: auto;
overflow-x: hidden;
*position:relative;
*left:0;
*top:0;
边栏推荐
猜你喜欢

Does volatile rely on the MESI protocol to solve the visibility problem? (top)

Elastic APM installation and use

附加到进程之后,断点显示“当前不会命中断点 还没有为该文档加载任何符号”

Ext4 file system opens dir_ After nlink feature, link_ Use link after count exceeds 65000_ Count=1 means the quantity is unknown

mysql5.7.25主从复制(单向)

MySQL transaction

arc-gis的基本使用2
![[MySQL] detailed explanation of redo log, undo log and binlog (4)](/img/67/6e646040c1b941c270b3efff74e94d.png)
[MySQL] detailed explanation of redo log, undo log and binlog (4)
![[shutter -- layout] detailed explanation of the use of align, center and padding](/img/01/c588f75313580063cf32cc01677600.jpg)
[shutter -- layout] detailed explanation of the use of align, center and padding

volatile 靠的是MESI协议解决可见性问题?(下)
随机推荐
Does volatile rely on the MESI protocol to solve the visibility problem? (next)
volatile 靠的是MESI协议解决可见性问题?(上)
Use of off heap memory
760. String length
phpexcel导出emoji符号报错
[MySQL] how to execute an SQL statement (2)
The provincial government held a teleconference on safety precautions against high temperature weather across the province
volatile 靠的是MESI协议解决可见性问题?(下)
Exception handling mechanism II
arcgis的基本使用4
cocoapods的安装和使用
C# Serialport的发送和接收
MySql5.7.25源码安装记录
Order based evaluation index (especially for recommendation system and multi label learning)
滑动窗口、双指针、单调队列、单调栈
C# 托管与非托管
Android implements the caching mechanism and caches multiple data types
ZXing简化版,转载
Ext4 file system opens dir_ After nlink feature, link_ Use link after count exceeds 65000_ Count=1 means the quantity is unknown
JS output diamond on the console