开发者

HTML CSS Border help

开发者 https://www.devze.com 2022-12-14 22:33 出处:网络
i am trying to get the bottom border one color开发者_Python百科 but because in the table border is set to 0

i am trying to get the bottom border one color开发者_Python百科 but because in the table border is set to 0 but when i set it to one it shows.

i put the following code in the < TD>

 style="border-bottom:thin; border-bottom-color:#006; "


border-bottom:thin;
border-bottom-color:#006

is the same as

border-bottom: thin none ???; /* Where ??? is whatever the color property is set to */
border-bottom-color:#006

(because properties you don't specify are set to the initial values)

which is the same as

border-bottom-width: thin;
border-bottom-style: none;
border-bottom-color: ???;  /* Where ??? is whatever the color property is set to */
border-bottom-color: #006;

If you use short cut property names, be careful about what you are resetting.

Use this instead:

border-bottom: thin solid #006;


You're not providing all that much information to go on, but here is something to look for:

Does the table have the style border-collapse: collapse? (this collapses the td borders so that there is not a border for the left of one td and the right of the next one - they use the same border when they're next to each other).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号