One-pixel table border with CSS(一個像素邊框的表格)

來源:互聯網
上載者:User

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>

 

相關文章

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.