为什么#div1{float:left}#{float:right}时第二个div上不去
<style> div{ border:2px red solid; width:200px; height:400px; } #div1{float:left;} #div2{float:right;} </style>
2016-05-01
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>浮动模型</title>
<style type="text/css">
div{
border:2px red solid;
width:200px;
height:400px;
}
#div1{float:left;}
#div2{float:right;}
</style>
</head>
<body>
<div id="div1">栏目1</div>
<div id="div2">栏目2</div>
</body>
</html>
举报