三種表格效果

來源:互聯網
上載者:User
li實現表格的效果

<style>
ul{display:inline;}
li{
list-style-type:none;
float:left;
width:190px;
height:22px;
text-align:left;
text-indent:4px;
border:#3A8B3E 1px solid;
}
</style>
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
<li>D</li>
<li>E</li>
<li>F</li>
<li>G</li>
<li>H</li>
</ul>

  效果如:

  css實現圓角表格的效果

<style type="text/css">
div#nifty{ margin: 0 10%;background: #9BD1FA}
p {padding:10px}
div.rtop, div.rbottom{display:block;background: #FFF}
div.rtop div, div.rbottom div{display:block;height: 1px;overflow: hidden; background: #9BD1FA}
div.r1{margin: 0 5px}
div.r2{margin: 0 3px}
div.r3{margin: 0 2px}
div.rtop div.r4, div.rbottom div.r4{margin: 0 1px;height: 2px}
</style>
<div id="nifty">
<div class="rtop"><div class="r1"></div><div class="r2"></div><div class="r3"></div><div class="r4"></div></div>
<p>Junstudio Blog</p>
<p>css實現圓角表格的效果</p>
<div class="rtop"><div class="r4"></div><div class="r3"></div><div class="r2"></div><div class="r1"></div></div>
</div>

  效果如:

  TABLE實現圓角表格的效果

<table cellpadding="0" cellspacing="0" border="0" width="282" align="center">
 <tr style="height:1px;">
 <td rowspan="4" width="1"></td>
 <td rowspan="3" width="1"></td>
 <td rowspan="2" width="1"></td>
 <td width="2"></td>
 <td bgcolor="#43B5C9"></td>
 <td width="2"></td>
 <td rowspan="2" width="1"></td>
 <td rowspan="3" width="1"></td>
 <td rowspan="4" width="1"></td>
 </tr>
 <tr style="height:1px;">
 <td bgcolor="#43B5C9"></td>
 <td bgcolor="#43B5C9"></td>
 <td bgcolor="#43B5C9"></td>
 </tr>
 <tr style="height:1px;">
 <td bgcolor="#43B5C9"></td>
 <td colspan="3" bgcolor="#43B5C9"></td>
 <td bgcolor="#43B5C9"></td>
 </tr>
 <tr style="height:2px;">
 <td bgcolor="#43B5C9"></td>
 <td colspan=5 bgcolor="#43B5C9"></td>
 <td bgcolor="#43B5C9"></td>
 </tr>
</table>
<table width="282" style="height:200px;" border="0" cellpadding="0" cellspacing="0" bgcolor="#43B5C9" align="center">
<tr>
<td>
<p>Junstudio Blog</p>
<p>TABLE實現圓角表格的效果</p>
</td>
</tr>
</table>

  效果如:

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.