我已經創建了這個盒子模型,我想在列中增加三個相同的盒子。CSS盒子問題
的CSS:
#box {
}
#box .circle
{
width:120px;
height:120px;
border-radius:50%;
font-size:2em;
color:#fff;
line-height:120px;
text-align:center;
background-color:yellow;
left:75px;
top:95px;
position: relative;
z-index: 1;
}
#box .box1 {
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
width:270px;
height:130px;
top:160px;
left:1px;
background-color:black;
padding:70px 40px 15px 40px;
position:absolute;
}
#box .box2 {
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
width:270px;
height:250px;
top:280;
left:1px;
background-color:blue;
padding:70px 40px 15px 40px;
position:absolute;
}
#box .box3 {
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
width:270px;
height:70px;
top:530px;
left:1px;
background-color:black;
padding:70px 40px 15px 40px;
position:absolute;
}
而且標記:
<body>
<div id="box">
<div class="circle">10GB</div>
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
</div>
</form>
</body>
哪裏是你''
mate你可以用你的代碼發佈http://jsfiddle.net/嗎? – dowomenfart
多說,你到底需要什麼? –