One-pixel table border with CSS(一个像素边框的表格)
CSS:
<style type="text/css"> /* <![CDATA[ */ table, td { border-color: #600; border-style: solid; } table { border-width: 0 0 1px 1px; border-spacing: 0; border-collapse: collapse; } td { margin: 0; padding: 4px; border-width: 1px 1px 0 0; background-color: #FFC; } /* ]]> */ </style>
Test Html:
<table> <tr> <td>Cell 1</td> <td>Cell 2</td> </tr> <tr> <td>Cell 3</td> <td>Cell 4</td> </tr> </table>
作者:Olar Tan
出处:http://www.cnblogs.com/olartan
♪:没有做不到的 只有偷懒而错过的 ♪