CSS style for table borders with dashed lines

Source: Internet
Author: User

The table border is displayed by default, and how can you turn it into a virtual line? In fact, as simple as a few style attributes can be done, I hope the following examples to help you

 

Copy Code code as follows:


<style>


. table5{text-align:center; border:1px solid #cccccc; border-radius:3px; Background-color: #FFFFFF; width:650px;}


. Table5 td{border-bottom:1px dashed #cccccc;}


. Table5. Last td{border-bottom:0;}


</style>

Copy Code code as follows:


<table width= "100%" border= "0" cellpadding= "2" cellspacing= "0" class= "table5" >
<tr >
<TD Colspan= "4" >&nbsp;</td>
</tr>
<tr >
<td width= "4% ></td>
<td width=" 17% "class=" TEXT-FL "> Acquaintances </td>
<TD width= "63%" align= "center" class= "TEXT-FL" > Consumption of 10 gold coins, swap 10 yuan mobile phone fee </td>
<td width= "16%" align= " Center "valign=" Middle ">2013.01.20</td>
</tr>
<tr class=" Last ">
<td ></td>
<td class= "text-fl" >m ping shui phase mm</td>
<td align= "Center "class=" TEXT-FL > Consumption 500 points, swap 500 fans </td>
<TD align= "center" valign= "Middle" >2013.01.20</td>
</tr>
<tr >
<td colspan= "4" ></td>
</tr>
</table>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.