ie4linux ie8,牛逼的ie中高度问题height

如题

条件 1:

.fd-content-height {

height:2000000px;

}

滚动内容

滚动内容

结果:

jsTest2:

9e9eae5015526219a9b0643dbd8a2bf7.png

jsTest21:

jsTest22:

b975c2e42cec03c6a83f4f7d9bdcbee5.png

不是我们想象的 父级:4000000px, 子级:2000000px

测试环境: 浏览器ie11, 其模拟下的 ie10, ie9, ie8 一样

ie7: 结果父级:4000000px, 子级:2000000px (特别注意),ie 7 最大限制高度为

4b4e996909e6315d7ef90d7c18b0e3eb.png

2cc7b49f0f969f9489606305fd8c79f3.png

tips:

.fd-content-height {

height:20000000px;

}

ie11,ie10,ie9, ie8 元素不显示滚动条,但是ie7 有滚动条

d0e5967e9073d3a9754ac2f4d92a7837.png

其他浏览器正常: 测试源码如下

ie 高度设置

*{

margin:0;

padding:0;

box-sizing: border-box;

}

li,ul {

list-style: none;

}

.fd-scroll-contain {

margin:0 auto;

width:500px;

height:600px;

border: 1px solid #000;

}

.fd-scroll-content {

position: relative;

z-index:1;

height:600px;

overflow: auto;

border: 1px solid green;

}

.fd-content-height {

height:2000000px;

/*  height:20000000px;*/

}

滚动内容

滚动内容

console.dir( document.getElementById('jsTest2'))

console.dir( document.getElementById('jsTest21'))

console.dir( document.getElementById('jsTest22'))

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值