1.样式一
代码如下:
<style type="text/css"> <!-- .a {FONT-SIZE: 12px; COLOR: #91002f; LINE-HEIGHT: 18px; FONT-FAMILY: "宋体" } .b {BORDER-RIGHT: #FF9933 1px dotted; BORDER-TOP: #FF9933 1px dotted; BORDER-LEFT: #FF9933 1px dotted; BORDER-BOTTOM: #FF9933 1px dotted } .style1 {color: #FF9933} --> </style> <TABLE cellSpacing=0 cellPadding=0 width=381 align=center border=0>
<TR> <TD class=b height=23> <DIV align=center class=a style1>虚线边框表格</DIV></TD> </TR>
</TABLE> 说明:可以通过修改px的值,来改变虚线边框的样式。
2px
3px
4px
5px
6px
7px
2.样式二
代码如下:
<style type="text/css"> <!-- .a {FONT-SIZE: 12px; COLOR: #91002f; LINE-HEIGHT: 18px; FONT-FAMILY: "宋体" } .b {BORDER-RIGHT: #FF9933 3px ; BORDER-TOP: #FF9933 3px dotted; BORDER-LEFT: #FF9933 3px ; BORDER-BOTTOM: #FF9933 3px dotted } .style1 {color: #FF9933} --> </style> <TABLE width=381 height="53" border=0 align=center cellPadding=0 cellSpacing=0>
<TR> <TD class=b height=23> <DIV align=center class=a style1>虚线边框表格</DIV></TD> </TR> </TABLE>
|