zoukankan      html  css  js  c++  java
  • textoverflow:ellipsis样式截取文字

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <meta name="robots" content="all" />
        <style type="text/css">
       .text_ellipsis{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; 100px;}  
        </style>
    </head>
    <body>
    <div class="text_ellipsis">GS安全标准,确保燃烧充分,并时刻监测家中用气环境,安全无忧</div>
    <div><a href="#" class="text_ellipsis">GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG</a></div>
    </body>
    </html>

  • 相关阅读:
    MSER
    resize和reserve的区别
    Rect
    U盘文件或目录损坏且无法读取怎么解决
    信道估计
    ann
    仿射变换详解 warpAffine
    opencv新版本的数据结构
    大津法
    php红包
  • 原文地址:https://www.cnblogs.com/lzf0514/p/2494480.html
Copyright © 2011-2022 走看看