div+css類比表格效果代碼_經驗交流

來源:互聯網
上載者:User
<!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=utf-8" /> <title>DIV+CSS類比表格效果 - by koyoz.com</title> <style type="text/css"> * {margin:0;padding:0} #main {margin:100px 0 0 200px} #main ul {width:520px;height:165px;list-style:none} #main li {border-left:1px solid #ccc;border-top:1px solid #ccc;float:left;width:102px;height:33px;text-align:center;line-height:33px} #main li.b {border-bottom:1px solid #ccc} #main li.r {border-right:1px solid #ccc} </style> </head> <body> <ul> <li>11</li> <li>11</li> <li>11</li> <li>11</li> <li class="r">11</li> <li></li> <li></li> <li></li> <li></li> <li class="r">11</li> <li></li> <li></li> <li></li> <li></li> <li class="r">11</li> <li></li> <li></li> <li></li> <li></li> <li class="r">11</li> <li class="b"></li> <li class="b"></li> <li class="b"></li> <li class="b"></li> <li class="b r">11</li> </ul> </body> </html>
[Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]
  • 相關文章

    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.