码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2019-06-20 12:55:40      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:ace   highlight   css   type   white   har   lips   doctype   nowrap   

<!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>

  

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

标签:ace   highlight   css   type   white   har   lips   doctype   nowrap   

原文地址:https://www.cnblogs.com/zhangxiaoqiong/p/11057916.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!