为什么我会在洛谷问H5的问题?
关于这样一个H5源码,为什么四个圆圈是并排排列的而不是 2×2 排列的?
<!DOCTYPE html>
<html>
<head>
<style>
div.circ{float: left;}
body{
background-color: black;
}
.circ{
border:2px solid #a1a1a1;
border-radius:25px;
padding:3px;
margin: 15px;
color: #dddddd;
background:#dddddd;
width:40px;
height:40px;
/*display: inline;*/
}
</style>
</head>
<body>
<div>
<div class="circ h1 l1"></div>
<div class="circ h1 l2"></div>
</div>
<div>
<div class="circ h2 l1"></div>
<div class="circ h2 l2"></div>
</div>
</body>
</html>