• 前端


    代码如下:

     <html>   

    <table>
    <tr>
    <th>服务商</th>
    <th>预计完成天数</th>
    <th>团队人数</th>
    <th>交易流水</th>
    <th>竞标时间</th>
    <th>采纳状态</th>
    <th>项目报价</th>
    <th>操作</th>
    </tr>
    <tr>
    <td>服务商1</td>
    <td>60天</td>
    <td>10人</td>
    <td>¥100000</td>
    <td>2017.01.01</td>
    <td>已邀约</td>
    <td>¥100000</td>
    <td><a href="">查看</a></td>
    </tr>
    <tr>
    <td>服务商2</td>
    <td>50天</td>
    <td>10人</td>
    <td>¥90000</td>
    <td>2017.01.01</td>
    <td>拒绝</td>
    <td>¥100000</td>
    <td><a href="">查看</a></td>
    </tr>
    </table>

    <css>

         

    .itemInf table{ border-collapse:collapse}
    .itemInf table tr th,.itemInf table tr td{
    12%;
    text-align: center;
    border-left: 0px solid;
    border-right: 0px solid;
    border-bottom: 1px solid #949494;

    }
    .itemInf table tr td,.itemInf table tr td a{
    color: #949494;
    }
    .itemInf table tr td a:hover{color: red;}
    .itemInf .itemRoom,.itemInf .itemRoom1{
    float: left;
    }

    之前想着这表格中间一直有个空格,也想过将左右表格中的左右设置成宽度为零,但是还是没有效果,只有使用了table{ border-collapse:collapse}这个,作用是式表格合并为单一边框,才能最后达到我想要的只显示边框下划线而左右线不显示的效果

  • 相关阅读:
    富文本
    管理员状态
    分页
    tp。3.2中的模板基础
    get和post之间的区别
    RegExp
    获取各种类型的节点
    节点的层次关系
    创建元素节点
    JavaScript 正则
  • 原文地址:https://www.cnblogs.com/dongcong/p/6525760.html
Copyright © 2020-2023  润新知