CSS控制标题字符长度的方法时间:2023-03-09 08:58:21 <style type="text/css"> .abc { background-color: #CCC; width: auto; overflow:hidden; text-overflow:ellipsis;/*文字溢出的部分隐藏并用省略号代替*/ white-space:nowrap;/*文本不自动换行*/border-radius: 5px; #四角圆 </style>