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>

  • 相关阅读:
    express4.x socket
    validator
    服务管理,Dll查看
    复制程序,获取系统信息
    TCP HelloWord
    UDP HelloWord
    [置顶] 一个小马
    注册表编辑
    服务的启动与停止
    自下载运行
  • 原文地址:https://www.cnblogs.com/HeShui/p/3899286.html
Copyright © 2011-2022 走看看