HTML中Table去掉两边的边框

HTML中Table去掉左右两边的边框

.table {
    text-align: center;
  }
  .table table {
    font-size: 14px;
    border-collapse: collapse;
    width: 70%;
    table-layout: fixed;
    text-align: center;
    line-height: 25px;
    margin:0 auto;
  }

    .table table tr {
        border: dashed 1px #a59e9e;
        border-left: none;
        border-right: none;
    }

效果如图所示:

HTML中Table去掉两边的边框_第1张图片

附上原html代码:



    Table去掉左右两边的边框



 

人员信息


 
   
     
     
     
     
     
   
   
     
     
     
     
     
   
   
     
     
     
     
     
   
   
     
     
     
     
     
   
 
姓名性别年龄出生日期地址
小明201998-10-12北京市
小花191999-02-02上海市
小强221996-05-04上海市



你可能感兴趣的:(html,分享)