Home  >  Article  >  Web Front-end  >  table中设置border的问题_html/css_WEB-ITnose

table中设置border的问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:23:15971browse

今天在修改table样式的时,想给tr加个border-bottom,一开始用的颜色比较浅,我还以为看电脑太久眼花,结果换了比较深的颜色后,border-bottom真的没有出来。

 

忽然想起在html代码中我给table设了内联样式:border="0",会不会是这个的原因,结果删去后还是不行,翻了下论坛,结果找到了答案。

 

将table设置样式:

border-collapse:collapse;

然后就可以开始给我的tr元素设置border-bottom了。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn