運用ul+li實現細線表格

來源:互聯網
上載者:User
本篇文章主要介紹如何使用用ul+li實現的細線表格效果不用table,非常有創意感興趣的小夥伴瞭解一下。

代碼如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>write by 阿會楠 環境:IE7+IE6</title> <style type="text/css"> #ulDate{     width:404px;     margin:0;     border-top:1px solid #cccccc;     border-left:1px solid #cccccc; } #ulDate li{     float:left;     width:100px;     height:30px;     list-style-type:none;     border-right:1px solid #cccccc;     border-bottom:1px solid #cccccc;     /*非必須*/     line-height:30px;     font-size:12px;     text-align:center;      } </style> </head> <body> <ul id="ulDate"> <li style="width:403px;background:#F7F7FF;text-align:center;">時間</li> <li>2008-7-30</li> <li>2008-7-30</li> <li>2008-7-30</li> <li>2008-7-30</li> <li>2008-7-30</li> <li>2008-7-30</li> <li>2008-7-30</li> <li>2008-7-30</li> <li>2008-7-30</li> <li>2008-7-30</li> <li></li> <li></li> </ul> </body> </html>

相關推薦:

html如何製作細線表格

使用css中border-collapse:collapse屬性建立一個細線表格的範例程式碼

CSS實現細線表格_html/css_WEB-ITnose

相關文章

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.