+------------------------------------------------------------------------------------------------------+ 用CSS定义表格 [2005-10-1] xcsxyq 发表在 网页制作
| 用CSS定交表格的方法,专供初学者使用,高手就不要看了。 <style type="text/css"> <!-- table { font-size: 9pt; text-decoration: none; border: 1px solid #000000; } --> </style> 但是这种方法只是定交了表格的外边框,没有定交表格里面的分割线,其实,我们只要在里面加入几句简单的代码,就可以达到我们想要的效果。完整代码如下: <style type="text/css"> <!-- table { font-size: 9pt; text-decoration: none; border: 1px solid #000000; } td{ border: 1px dashed #cccccc; } --> </style>
| |
+------------------------------------------------------------------------------------------------------+ |