设为首页
加入收藏
站内地图
旧版入口

彩色虚线表格的制作方法

作者:佚名 出处:网络转载 时间:10-18 点击:

内容载入中...
   

在<head>和</head>中加入如下代码:
<style type="text/css">
<!--
.tab1 {
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: dotted;
border-right-style: dotted;
border-bottom-style: dotted;
border-left-style: dotted;
border-top-color: #0099CC;
border-right-color: #0099CC;
border-bottom-color: #0099CC;
border-left-color: #0099CC;
}
-->
</style>

在合适的单元格位置中插入表格代码:
<table width="200" border="0" cellpadding="2" cellspacing="2" class="tab1">
<tr>
<td><div align="center">虚</div></td>
<td><div align="center">线</div></td>
</tr>
<tr>
<td><div align="center">表</div></td>
<td><div align="center">格</div></td>
</tr>
</table>

线
解说:如果是想做实线,就把dotted改为solid
收藏本文:
】【打印页面】【推荐给朋友】【关闭窗口
推荐信息