DW adds a thin border to a table without CSS styles

Source: Internet
Author: User

As shown in figure:

Set up:

Effect:

There is no good way, on the internet for a long time, mostly speaking style, I have not yet learned, I also know that the style of course is a lot of good, can be set into a rich table, dotted ah, two lines ah what, but must be very understanding of the style, and then through my practice, I found a way, hehe, I'm just talking about one of the easiest ways to do this without having to use CSS style, and notice oh, I'm just saying it's a personal little way, not a skill.

I found that just set the border to 0, the spacing is set to 1, the padding is set to 0, you can, and then you want to set the border to what color the table background set why color, inside the color set to the same page background color on it. As shown in figure:

Set up:



Effect:

Here I set the background of the table to Blue (#0000FF), the form is set to white, the code is as follows:


 <table  bgcolor= "#0000FF" width= "border=" 0 "cellpadding=" 0 "cellspacing=" 1 "> <tr> <TD BG Color= "#FFFFFF" >&nbsp;</td> <td bgcolor= "#FFFFFF" >&nbsp;</td> <td bgcolor= "#FFFFFF ">&nbsp;</td> </tr> <tr> <td bgcolor=" #FFFFFF ">&nbsp;</td> <td bgcolor=" #FFFFFF ">&nbsp;</td> <td bgcolor=" #FFFFFF ">&nbsp;</td> </tr> <tr> <TD Bgcolor= "#FFFFFF" >&nbsp;</td> <td bgcolor= "#FFFFFF" >&nbsp;</td> <td bgcolor= "# FFFFFF ">&nbsp;</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.