zoukankan      html  css  js  c++  java
  • 文字超出用省略号代替

            <!DOCTYPE html>
        <html>
        <head>
            <meta http-equiv="Content-type" content="text/html;charset=utf-8">
            <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
            <title>文字超出用省略号代替</title>
            <style>
            .text-deal{
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                height: auto;
                line-height: 24px;
                padding: 0 15px;
                padding-top: 10px;
                white-space: normal;
            }
            </style>
        </head>
        <body>
        <div class="text-deal">
            这是一个有效果的文字超出用省略号代替的例子,你看可以吗?这是一个有效果的文字超出用省略号代替的例子,你看可以吗?这是一个有效果的文字超出用省略号代替的例子,你看可以吗?
        </div>
        </body>
        </html>

  • 相关阅读:
    Mariadb/Mysql命令行常用命令
    Apache
    Web网页服务器软件——介绍
    力扣 2021.02.22
    openwrt 广告屏蔽大师 Plus+ 广告屏蔽
    AWX安装
    Command "python setup.py egg_info" failed with error code 1
    《Can you feel my world》--王力宏
    csv文件读入转字典
    每日一题力扣110 平衡二叉树
  • 原文地址:https://www.cnblogs.com/water-wf/p/8707540.html
Copyright © 2011-2022 走看看