This article mainly describes the DW in the use of CSS style for the table to add a thin border of the method, has a certain reference value, now share to everyone, the need for friends can refer to
Add a thin line with CSS. No, you can. This article is about how to add a thin line to a table without CSS
Recently in the study of Dreamweaver to do the site, is learning form this chapter, the results found that the table border settings is very bad, is set to the border 1 is also particularly thick, I want to use CSS style for the table to add a thin border , really ugly,
Set up:
Effect:
There is no good way to look for a long time on the internet, mostly speaking style, I have not learned it, I also know that the style is certainly a lot of good, can be set into a rich form, dashed ah, double line ah what, but must have to the style very understanding, and then through my practice, I found a way, hehe, I'm just talking about one of the simplest ways to do this without having to use CSS styles, and note that I'm just saying that 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 fill is set to 0, you can, and then you want to set the border to the color of the background of the table why the color, the color is set to the page background of the same color can be.
Set up:
Effect:
Here I set the background of the table to Blue (#0000FF), the table is white, the code is as follows:
<table bgcolor= "#0000FF" width= "border=" 0 "cellpadding=" 0 "cellspacing=" 1 "><tr><td bgcolor= "#FFFFFF" > </td><td bgcolor= "#FFFFFF" > </td><td bgcolor= "#FFFFFF" > </td></tr><tr> <td bgcolor= "#FFFFFF" > </td><td bgcolor= "# FFFFFF "> </td><td bgcolor=" #FFFFFF "> </td></tr><tr><td Bgcolor= "#FFFFFF" > </td><td bgcolor= "#FFFFFF" > </td><td bgcolor= "# FFFFFF "> </td></tr></table>
This way, do not use CSS style to add a thin line to the table border is OK, want what color to change to what color, do not have the style can be completed, hehe.
The above is the whole content of this article, I hope that everyone's learning has helped, more relevant content please pay attention to topic.alibabacloud.com!