简单记录(css换行带点与不带点)
程序员文章站
2022-03-22 12:55:10
Document ......
<!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>
上一篇: 深度解密Go语言之context
下一篇: 查询数据库大小的代码