当前位置:Gxlcms > JavaScript > 如果文字过长,则将过长的部分变成省略号显示

如果文字过长,则将过长的部分变成省略号显示

时间:2021-07-01 10:21:17 帮助过:18人阅读

<DIV STYLE="width: 120px; height: 50px; border: 1px solid blue;
            overflow: hidden; text-overflow:ellipsis">
<NOBR>就是比如有一行文字,很长,表格内一行显示不下.</NOBR>
</DIV>

人气教程排行