zoukankan      html  css  js  c++  java
  • 前端

    代码如下:

     <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}这个,作用是式表格合并为单一边框,才能最后达到我想要的只显示边框下划线而左右线不显示的效果

  • 相关阅读:
    GitLab 介绍
    git 标签
    git 分支
    git 仓库 撤销提交 git reset and 查看本地历史操作 git reflog
    git 仓库 回退功能 git checkout
    python 并发编程 多进程 练习题
    git 命令 查看历史提交 git log
    git 命令 git diff 查看 Git 区域文件的具体改动
    POJ 2608
    POJ 2610
  • 原文地址:https://www.cnblogs.com/dongcong/p/6525760.html
Copyright © 2011-2022 走看看