HTML 中的平衡文本换行 [英] Balanced text wrapping in HTML
本文介绍了HTML 中的平衡文本换行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 HTML 中,有没有一种方法可以将多行中断的文本均匀分布?
例如,我不想:
<前>这是一些非常长的标签两行.我更愿意:
<前>这是一些很长的标签以两行结束. 解决方案
Adobe 提议添加一个新的 css 属性 text-wrap: balance
.
与此同时,他们创建了一个名为 balance-text 的 jQuery 插件来实现相同的结果.>
In HTML, is there a way to evenly distribute text that is broken across multiple lines?
E.g., I don't want:
Here is some really long label that ends up on two lines.
I'd prefer:
Here is some really long label that ends up on two lines.
解决方案
Adobe has proposed that a new css property be added text-wrap: balance
.
In the meantime they have created a jQuery plugin named balance-text to achieve the same result.
这篇关于HTML 中的平衡文本换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文