html格式
<div class="document-list">
<div class="document-item">
<div class="number">1</div> <a href="#">Testing link 1 </a>
</div>
<div class="document-item">
<div class="number">2</div> <a href="#">Testing link 2</a>
</div>
<div class="document-item">
<div class="number">3</div> <a href="#">Testing link 3</a>
</div>
<div class="document-item">
<div class="number">4</div> <a href="#">Testing link 4</a>
</div>
<div class="document-item">
<div class="number">1</div> <a href="#">Testing link 1</a>
</div>
<div class="document-item">
<div class="number">5</div> <a href="#">Testing link 5</a>
</div>
<div class="document-item">
<div class="number">6</div> <a href="#">Testing link 6</a>
</div>
</div>
CSS樣式
給出寬度:100%到(。document-list)和in。文檔項目使用float:left;寬度:50%
.document-list {
margin-top:20px;
padding-left:40px;
padding-bottom:15px; width:100%;
}
.number {
display: inline-block;
border: 1px solid #0084c9;
border-radius: 50%;
color: #0084c9;
text-align: center;
padding: 1px 5px 1px 5px;
}
.document-item {
margin-bottom:8px;
float:left;
width:50%
}
在這裏看到的演示:http://jsfiddle.net/Efc4V/
你能提供的HTML藏漢? – Himmators
你可以找到它在jsfiddle – Obsivus
使用表來實現這個 –