0
点赞
收藏
分享

微信扫一扫

运维旧网站,ASPCMS太长字符串截断显示。CSS设置换行

紫荆峰 2022-12-13 阅读 180


直接上代码
<div style="float:left; width:255px;"><img src="{aspcms:sitepath}/templates/{aspcms:defaulttemplate}/images/dian.jpg" width="13" height="13" alt="[content:title]"/> <a href="[content:link]" title="[content:title]" >[content:title len=18]</a></div>


备注:[content:title len=18] 就是显示18个字符,过去少了len=18 长出的部分还换行了,其丑无比啊。


另外CSS里控制换行:

word-wrap:break-word ;


设置不换行:

white-space:normal

举报

相关推荐

0 条评论