zoukankan      html  css  js  c++  java
  • 表格超出部分隐藏

    <html>
    <head>
    <style type="text/css">
    td{
    white-space:nowrap;text-overflow: ellipsis;overflow: hidden;
    }
    </style>
    </head>
    <body>
    <table width="350px" border="1" cellspacing="0" cellpadding="0" style="table-layout:fixed;">

    <colgroup>
    <col style=" 10%;"></col>
    <col style=" 10%;"></col>
    <col style=" 10%;"></col>
    <col style=" 10%;"></col>
    <col style=" 10%;"></col>
    <col style=" 10%;"></col>
    <col style=" 10%;"></col>
    <col style=" 10%;"></col>
    <col style=" 10%;"></col>

    <!--可以用来分配列宽-->
    </colgroup>


    <tr>
    <td width="200">注意:表格必须要设置宽度</td>
    <td style="">超长的不希望换行而希望能自动隐藏的内容,超长的不希望换行而希望能自动隐藏的内容</td>
    <td>&nbsp;</td>
    </tr>
    </table>
    </body>
    </html>

  • 相关阅读:
    练习5.6.3节
    size_t
    练习3.43
    use include to read a file
    ACM数学(转)
    POJ 2039 To and Fro
    poj 1716 差分约束
    poj 3159 差分约束
    hdu 4571 floyd+动态规划
    poj 1364 差分约束
  • 原文地址:https://www.cnblogs.com/HeShui/p/3899286.html
Copyright © 2011-2022 走看看