浏览网站的时候总是看见很多虚线表格,使得网页的边线看起来更舒服,其实做起来也很简单了,在表格的html里加上这个:

style=”BORDER-LEFT:#000000 1PX DASHED;
BORDER-RIGHT: #000000 1PX DASHED;
BORDER-TOP: #000000 1PX DASHED;
BORDER-BOTTOM: #000000 1PX DASHED”

颜色是十六位代码,你可以自己设。

注:只能在IE5.5以上版本里用,到了NETSCAPE里一点用处都没有,除非你用做好的底图填充。

下面是一个例子:


虚线表格


style=”border-width: 0; “>

 
 
 


2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.