html - CSS-连字符在 chrome 和 firefox 中不起作用

标签 html css

我正在尝试使用 CSS 连字符。我用过 -webkit-hyphens: auto; , overflow-wrap:hyphenate., -moz-hyphens: auto; 但没有任何反应结果。

enter image description here

如何才能成功实现断字?

最佳答案

现在的标准化语法是:

hyphens:auto;

但它适用于少数浏览器。

您还可以在要剪切单词的地方使用实体­。 但这是一项漫长而乏味的工作。

关于html - CSS-连字符在 chrome 和 firefox 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44714528/

相关文章:

html - 溢出 :hidden includes float in container - why?

html - 粘性下拉菜单。 (溢出)

html - 如何在 Bootstrap 中添加固定宽度后使 div 响应

html - 为 RWD 触发特定宽度的媒体查询后,如何将菜单居中对齐

javascript - 如何向该脚本添加不透明度过渡?

javascript - 如何将 SVG 文件添加到具有动态尺寸的 HTML canvas 元素中?

python - django css 适用于 chrome 但不适用于 firefox

javascript - 将 Adsense 添加到 html

Android从drawable将图像添加到webview

CSS:没有过渡的渐变?