html - 文本溢出 "string"无效的属性值 Chrome

标签 html css google-chrome mozilla

<分区>

有谁知道为什么 text-overflow 的所有默认值都可以在谷歌浏览器中使用,除了“字符串”值之外?

如果你想检查它,你可以用这个链接打开 mozilla 和 chrome:https://css-tricks.com/almanac/properties/t/text-overflow/

然后您可以转到第一个显示实现的“codepen”框,并在两个浏览器中检查 text-overflow: "---" 时的性能。

在 mozilla firefox 45.0 中工作,但在 chrome 49.0.2623.87(64 位)中不工作......并且错误是无效的属性值......

最佳答案

简单地说,Chrome 不支持它。

查看浏览器兼容性: https://developer.mozilla.org/en/docs/Web/CSS/text-overflow

关于html - 文本溢出 "string"无效的属性值 Chrome,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36063044/

相关文章:

java - 在 Java 应用程序中获取 Chrome 浏览器

html - 高度自动的 Div 之外的段落

html - iOS Mobile Safari 导航栏/工具栏关于方向更改的问题

javascript - 谷歌浏览器扩展。本地获取json数据

javascript - XRM setDisable() 在 IE 以外的浏览器上不起作用

html - 如何居中和改变下划线的长度?

jquery - 通过jquery每次迭代4次后添加一个类

html - Bootstrap 3 - 2 行并排

javascript - 在 Chrome 中重新显示 html 输入范围拇指

html - 删除最小宽度条件下底部的空白