登录|立即注册
首页 > 站长资料
发帖|
匿名 匿名
2020-9-23 13:30

默认

默认: 文字超出宽度自动隐藏

代码:

  1. style="width:65px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"


width:65px; 为宽度
overflow:hidden; 溢出隐藏
white-space:nowrap; 文本不进行换行
text-overflow:ellipsis; 隐藏部分以省略号...显示