当前位置:首页 » 表格制作 » html表格怎样加内框线
扩展阅读
可以养牛养羊的电脑游戏 2025-08-01 20:51:22
惠普5101可以装什么系统 2025-08-01 20:37:23

html表格怎样加内框线

发布时间: 2023-08-16 10:18:07

❶ 在html的表格中,怎么把表格的边框设置为实线框具体的代码是什么谢谢

<style type="text/css">
<!--
.tableborder {
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
/*以上分别设置的是表格边框中上右下左的边框宽度*/
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
/*设置边框的表现样式,solid为实线*/
border-top-color: #0000FF;
border-right-color: #0000FF;
border-bottom-color: #0000FF;
border-left-color: #0000FF;
/*设置边框的颜色*/
}
-->
</style>
<table width="300" height="100" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">
<tr>
<td>class="tableborder"是对样式的调用,写在table标签内</td>
<td></td>
</tr>
</table>