html/CSS Ellipsis

感情迁移 提交于 2019-11-30 16:32:11

Not sure if this helps:

http://quirksmode.org/css/textoverflow.html

Support is not provided in Firefox. The Mozilla developers think there are too many edge cases involving r-to-l languages etc to implement safely, yet.

Firefox now supports text-overflow: ellipsis starting with version 7 (source). Hurray!

All I know is that you need all these rules:

white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;

and it should have width (not an inline element).

Also, use your favourite browser developer tools to check you are not inheriting a property that conflicts.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!