Home > Web Front-end > HTML Tutorial > table中设置border的问题 - 林七七

table中设置border的问题 - 林七七

WBOY
Release: 2016-05-21 08:42:45
Original
1278 people have browsed it
今天在修改table样式的时,想给tr加个border-bottom,一开始用的颜色比较浅,我还以为看电脑太久眼花,结果换了比较深的颜色后,border-bottom真的没有出来。
 
忽然想起在html代码中我给table设了内联样式:border="0",会不会是这个的原因,结果删去后还是不行,翻了下论坛,结果找到了答案。
 
将table设置样式:
border-collapse:collapse;
然后就可以开始给我的tr元素设置border-bottom了。
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template