Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

内容溢出时,无论如何都要显示全部内容,让内容自动换行 #120

Open
lovelmh13 opened this issue Jul 23, 2021 · 0 comments

Comments

@lovelmh13
Copy link
Owner

word-break 属性
word-break 属性可以让希望展示的内容自动换行,不会超过容器的范围(不会跑到内边距上)。

word-break: break-all 直接换行,不管单词,会把单词拆开。对于non-CJK (CJK 指中文/日文/韩文) 文本,可在任意字符间断行。
word-break: keep-all; CJK 文本不断行。 Non-CJK 文本表现同 normal。
word-break: break-word;他的效果是word-break: normal 和 overflow-wrap: anywhere 的合,不论 overflow-wrap的值是多少。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant