Home >Backend Development >PHP Tutorial >html表格边框有关问题

html表格边框有关问题

WBOY
WBOYOriginal
2016-06-13 10:16:431273browse

html表格边框问题
border:solid 1px #0099FF;


这样设置的表格看最外面的边框都很细··一条实线
可是单元格之间的距离实际是2条实线··
怎么拿内部相连的单元格距离也是一条实线

------解决方案--------------------
td{border:solid red 1px}
------解决方案--------------------
td{ border-right:1px solid #000; border-bottom:1px solid #000;}
table{border:1px solid #000;border-right:0;border-bottom:0;}





1 2
3 4

------解决方案--------------------

------解决方案--------------------
HTML code

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