wordBreak 属性指定非 CJK 脚本的换行规则。
提示:CJK 脚本是中文、日文和韩文 ("CJK") 脚本。
Property | |||||
---|---|---|---|---|---|
wordBreak | Yes | Yes | Yes | Yes | Yes |
返回 wordBreak 属性:
object.style.wordBreak
设置 wordBreak 属性:
object.style.wordBreak = "normal|break-all|keep-all|initial|inherit"
Value | Description |
---|---|
normal | Default value. Break words according to their usual rules |
break-all | Lines may break between any two letters |
keep-all | Breaks are prohibited between pairs of letters |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
默认值: | 普通的 |
---|---|
返回值: | 一个 String,表示元素的分词属性 |
CSS版本 | CSS3 |
CSS 参考:断字属性
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!