我有一个样本
<h3>How to elasticity of the char length in javascript or css<h3>
<h3>How to elasticity<h3>
Run Code Online (Sandbox Code Playgroud)
如果字符串很长,如何配置字符串的大小
<h3>How to elasticity of ...<h3>
<h3>How to elasticity<h3>
Run Code Online (Sandbox Code Playgroud)
怎么样这个想法
h3 {
width: 200px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; /* magic happens here */
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
66 次 |
| 最近记录: |