【问题标题】:What is text-align: justify-all?什么是文本对齐:全部对齐?
【发布时间】:2018-01-01 22:42:58
【问题描述】:

在 css 中,text-align: justify-all 属性是做什么的?在MDN 上,他们建议它也证明了最后一行的内容。但我在我的 chrome 浏览器中看不到任何事情发生:

<p style="text-align: justify-all">
one two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four five
</p>

【问题讨论】:

标签: html css w3c


【解决方案1】:

查看 W3C 规范,任何主流浏览器似乎都不支持它https://www.w3.org/International/tests/repo/results/text-align

你可以试试 text-align-last。它确实有浏览器支持,但不是很好http://caniuse.com/#feat=css-text-align-last

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-04-16
    • 2015-10-18
    • 1970-01-01
    • 2020-07-12
    • 2015-02-12
    • 2020-05-23
    • 2017-02-17
    • 1970-01-01
    相关资源
    最近更新 更多