截取字符串长度,超过那个限制的长度后面字符串自动变成省略号
a{height: 32px;
<div class="styles-section-title styles-selector">width: 330px;</div>
<div class="styles-section-title styles-selector">overflow: hidden;</div>
<div class="styles-section-title styles-selector">text-overflow: ellipsis;</div>
<div class="styles-section-title styles-selector">white-space: nowrap;</div>
<div class="styles-section-title styles-selector">font-size: 12px;</div>
<div class="styles-section-title styles-selector">word-break:</div>
<div class="styles-section-title styles-selector">keep-all;</div>
<div class="styles-section-title styles-selector">text-align: right;</div>
<div class="styles-section-title styles-selector">display: block;</div>
<div class="styles-section-title styles-selector">}</div>
<div class="sidebar-pane-closing-brace">