浮动模型 div1设置左浮动后 为什么会消除div2的边框
<style type="text/css">
div{
border:2px red solid;
width:100px;
height:100px;
}
</style>
</head>
<body>
<div id="div1"style="float:left;">栏目1</div>
<div id="div2">栏目2</div>
<style type="text/css">
div{
border:2px red solid;
width:100px;
height:100px;
}
</style>
</head>
<body>
<div id="div1"style="float:left;">栏目1</div>
<div id="div2">栏目2</div>
2016-11-14
举报