gpt4 book ai didi

css - 如何防止小移动 View 中的断字

转载 作者:行者123 更新时间:2023-12-04 07:51:45 26 4
gpt4 key购买 nike

以下 URL 上的 H1 标题:
https://www.purelocal.com.au/celebrity-ink-tattoo-studio-highpoint
在手机中,由于字体大小的原因,单词经常被截到一半并强制换行。
防止这种情况在移动设备上使用小字体的唯一方法是什么?

最佳答案

你可以使用 css word-break: break-word;在单词的空格上打破单词,而不是在单词本身上。word-break 的其他选项将是 break-all , keep-all , 或 normal (默认值)
Here is a sample link for the four values of the word-break property

关于css - 如何防止小移动 View 中的断字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66929298/

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