效果图:
【css】设置table表格边框样式_table

方法一

            姓名        性别        住址        电话                            张三            男            深圳龙岗区            131313131313                            张三            男            深圳龙岗区            131313131313
table {
    min-height: 25px;
    line-height: 25px;
    text-align: center;
    border-collapse: collapse;
}

table,
table tr th,
table tr td {
    border: 1px solid #a8aeb2;
    padding: 5px 10px;
}

方法二

            姓名        性别        住址        电话                            张三            男            深圳龙岗区            131313131313                            张三            男            深圳龙岗区            131313131313
table{
    border-right: 1px solid #a8aeb2;
    border-bottom: 1px solid #a8aeb2;
}
table td,table th{
    border-top: 1px solid #a8aeb2;
    border-left: 1px solid #a8aeb2;
    padding: 5px 10px;
}