<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> Windows UI Table </title> <meta name="author" content="DeltaCat@www.zu14.cn" /> <meta name="keywords" content="table, css" /> <meta name="description" content="windows ui table" /> </head> <style type="text/css"> td{font-size:12px;font-family: Verdana,tahoma} .winUI { margin: 0 auto; border: solid 1px #d4d0c8; } .winUI tr td, .winUI thead td, tfoot td { border-left: 1px solid buttonhighlight; border-top: 1px solid buttonhighlight; border-bottom: 1px solid buttonshadow; border-right: 1px solid buttonshadow; } .winUI thead td, tfoot td { background-color: #ece9d8; cursor: pointer; padding: 4px; font-weight: bold; } </style> <body> <table cellpadding="4" cellspacing="0" border="1" class="winUI" width="500px"> <thead> <td>欄位標題1 </td> <td>欄位標題2</td> <td>欄位標題3 </td> <td>欄位標題4</td> <td>欄位標題5</td> </thead> <tbody> <tr> <td>test</td> <td>good</td> <td>nothing</td> <td>OK</td> <td>中文</td> </tr> <tr> <td>price</td> <td>ABC.COM</td> <td>123.98</td> <td>¥1023.98</td> <td>嘿嘿</td> </tr> <tr> <td>product</td> <td>真有意思</td> <td>2008-11-23</td> <td>兩隻老虎</td> <td>不是吧</td> </tr> <tr> <td>a</td> <td>b</td> <td>c</td> <td>d</td> <td>e</td> </tr> <tr> <td>1</td> <td>2</td> <td>3</td> <td>4</td> <td>5</td> </tr> </tbody> <tfoot> <td colspan="5" >共 5 行</td> </tfoot> </table> </body> </html>
[Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]