Html IE11中奇怪的重画
我已经减少了css和html到这一点Html IE11中奇怪的重画,html,internet-explorer-11,Html,Internet Explorer 11,我已经减少了css和html到这一点 弗斯特 小孩 .首先{ 明确:两者皆有; } .第一个孩子{ 浮动:左; } 第二席尔德先生{ 浮动:左; 明确:两者皆有; 边缘顶部:100px; } 在IE11中打开项目。 当您检查secondsChild元素时,您将看到边距从“first”div的正下方开始。 将“第一个”div更改为具有位置:固定。检查secondsChild元素,您将看到边距从“第一个”文本上方开始。 移除位置:固定“第一”div。检查secondsChild元素,您将看到边距
弗斯特
小孩
.首先{
明确:两者皆有;
}
.第一个孩子{
浮动:左;
}
第二席尔德先生{
浮动:左;
明确:两者皆有;
边缘顶部:100px;
}
*{
margin:0; padding:0;
}
.first{
position:static;
border:1px solid #f0f;
clear:both;
padding-bottom:5px;
}
.firstChild{
border:1px solid #0f0;
float:left;
}
.second{
border:1px solid #00f;
}
.secondsChild{
border:1px solid #f00;
float:left;
clear:both;
margin-top:60px;
width:800px
}
*{
margin:0; padding:0;
}
.first{
position:static;
border:1px solid #f0f;
clear:both;
padding-bottom:5px;
}
.firstChild{
border:1px solid #0f0;
float:left;
}
.second{
border:1px solid #00f;
}
.secondsChild{
border:1px solid #f00;
float:left;
clear:both;
margin-top:60px;
width:800px
}