gpt4 book ai didi

html - 什么是文本对齐 : justify-all?

转载 作者:搜寻专家 更新时间:2023-10-31 08:14:52 25 4
gpt4 key购买 nike

在 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>

最佳答案

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

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

关于html - 什么是文本对齐 : justify-all?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43427205/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com