该word-break: break-all;
样式不适用于带有“$”符号的文本。
HTML
<div>
<span>1234567890098765543331234567899766543</span>
<hr>
<span>$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$</span>
<hr>
<span>etryeuiiosdfghjknmbvcxzxertyuihgtrtyh</span>
</div>
CSS
div {
width: 30px;
}
span{
display: inline-block;
word-break: break-all;
}