当前位置: 移动技术网 > IT编程>网页制作>CSS > 简单记录(css换行带点与不带点)

简单记录(css换行带点与不带点)

2019年06月21日  | 移动技术网IT编程  | 我要评论

黑龙战机,汇车网租车,香港写意论坛

<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>document</title>
    <style>
        /* 前提一定要有宽高 */
        /* 换行带点 */
        .no_whitespace_ellipsis{
            width: 100%;
            max-width: 3.4rem;
            height: .44rem;
            min-height: .44rem;
            font-size: .24rem;
            font-weight: 400;
            color: #999999;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        /* 换行不带点 */
        .no_whitespace{
            width: 100%;
            max-width: 3.4rem;
            height: .44rem;
            min-height: .44rem;
            font-size: .24rem;
            font-weight: 400;
            color: #999999;
            overflow: hidden;
        }
    </style>
</head>
<body>
    
</body>
</html>

  

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网