Jade 里怎么弄word-wrap
p!= ‘<width: 50px><word-wrap: break-word>’ + articles[i].article
這個不工作啊。求教! 就是限制一行文本的长度
4 回复
@jiyinyiyong yes. something like this:
<div style=“word-wrap: break-word; width:50px;”>Textttttttttttttttttttttttttttttttttttttttttttttttttttttttt</div>
如果是这一段HTML片段,对应的Jade脚本应该是:
div(style="word-wrap: break-word; width:50px;")=articles[i].article