Table表格横竖线实现Css

.tablel
{
 border-collapse:collapse; /* 关键属性:合并表格内外边框(其实表格边框有2px,外面1px,里面还有1px哦) */
 border:solid #999; /* 设置边框属性;样式(solid=实线)、颜色(#999=灰) */
 border-1px 0 0 1px; /* 设置边框状粗细:上 右 下 左 = 对应:1px 0 0 1px */
}
.tablel th{border:solid #999;border-0 1px 1px 0;padding:2px;}
.tablel td {border:solid #999;border-0 1px 1px 0;padding:2px;}
附注:页面引用css文件,一种直接拖拉,一种在首部添加:
<head runat="server">
    <title>无标题页</title>
    <link href="default.css" rel="stylesheet" type="text/css" />
</head>
原文地址:https://www.cnblogs.com/lgzh3/p/921931.html