HTML可以通过为表格添加border属性来添加边框。推荐学习:html教程
示例:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<table width="400" border="1" cellspacing="0" cellpadding="0">
<tr>
<td >示例</td>
<td >网址</td>
<td >示例</td>
</tr>
<tr>
<td>示例</td>
<td>示例</td>
<td>示例</td>
</tr>
<tr>
<td>示例</td>
<td>示例</td>
<td>示例</td>
</tr>
</table>
</body>
</html>
登录后复制
效果图:
border 简写属性在一个声明设置所有的边框属性。
可以按顺序设置如下属性:
border-width:规定边框的宽度。
border-style:规定边框的样式。
border-color:规定边框的颜色。
以上就是html表格边框的详细内容,更多请关注靠谱客其它相关文章!
最后
以上就是霸气电灯胆最近收集整理的关于html表格边框的全部内容,更多相关html表格边框内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复