当前位置:网站首页>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;
边栏推荐
猜你喜欢
Server memory failure prediction can actually do this!
Personality test system V1.0
volatile 靠的是MESI协议解决可见性问题?(下)
js在控制台输出菱形
Elastic APM installation and use
MySQL transaction
面试题目大赏
2022 chemical automation control instrument operation certificate test question simulation test platform operation
Windows backs up the database locally by command
Your login IP is not within the login mask configured by the administrator
随机推荐
2020-12-29
Paper notes: knowledge map kgat (unfinished temporary storage)
Byte buffer stream & character stream explanation
Vertical search
[MySQL] how to execute an SQL statement (2)
Windows backs up the database locally by command
Voice chat app source code - Nath live broadcast system source code
Sending and receiving of C serialport
Sliding window, double pointer, monotone queue, monotone stack
滑动窗口、双指针、单调队列、单调栈
malloc分配空间失败,并且不返回null
Stm32+mfrc522 completes IC card number reading, password modification, data reading and writing
keepalived 实现mysql自动故障切换
搜索模块用例编写
安卓 实现缓存机制,多种数据类型缓存
cocoapods的安装和使用
asp.net 使用redis缓存(二)
(2006, MySQL server has gone away) problem handling
Fiddler下载安装
使用openLayer画箭头