我該如何做到這一點?對齊4 div與父div中的百分比尺寸
HTML代碼:
<div class="inset">
<div class="innerWrapper">
<div class="uncollapse">
</div>
<div class="featuredbox">
<div class="rank"></div>
<div class="banner"></div>
<div class="desc"></div>
<div class="votes"></div>
</div>
</div>
</div>
CSS代碼:
@charset "utf-8";
.featuredbox {
background-color: #f8f8f8;
height: 160px;
width: 100%;
border: 1px solid #d5d5d5;
margin-top: 10px;
-webkit-box-shadow: 0px 0px 4px 1px #d8d8d8;
box-shadow: 0px 0px 4px 1px #d8d8d8;
padding-top: 15px;
padding-bottom: 10px;
}
.featuredbox .rank {
color: #8f8f8f;
width: 10%;
height: 100%;
}
.featuredbox .banner {
width: 80%;
height: 50%;
}
.featuredbox .desc {
width: 80%;
height: 50%;
}
.featuredbox .votes {
width: 10%;
height: 100%;
}
What it should look like http://puu.sh/49szH.png
我該怎麼做才能讓他們在特定的格式排列,而無需使用固定的值?
謝謝!
它要求我把更多的細節,但我沒有任何更多的給:(