如何实现虚线边框?
HTML 代码片段如下:
<html>
<head>
<title>虚线</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td></td>
</tr>
</table>
</body>
</html>
还可以把dashed换成dotted
solid
double
groove
ridge
inset
outset 等等样式,还可以在style里指定颜色:border-color:#??????
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>New Page 1</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
</head>
<body>
<table border="1" width="100%">
<tr>
<td width="50%"> </td>
<td width="50%"> </td>
</tr>
<tr>
<td width="50%"> </td>
<td width="50%"> </td>
</tr>
<tr>
<td width="50%"> </td>
<td width="50%"> </td>
</tr>
</table>
</body>
</html>
<html>
<body>
<table>
<tr>
<td>只有这样才行吗?</td>
</tr>
<tr><td height=100></td></tr>
<tr><td>如果td多了,这样出来的虚线边框是断断续续的。</td></tr></table>
</body></html>