The text-overflow: ellipsis works as expected in all of the project supported browsers but I still have a rendering issue in IE9 (see screenshot). The CSS rule is followed, but the characters of the ellipsis is not rendered correctly. Most (or all) of the posts treating about text-overflow: ellipsis are generally about it's implementation, but about that very topic, I have no luck.
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- Add animation to jQuery function Interval
- Is TWebBrowser dependant on IE version?
I actually found more information about that issue here: https://github.com/FortAwesome/Font-Awesome/issues/1079
It is a browser issue. The above link also points to a jsfiddle reproducing the issue and proposing a fix for it (unfortunately for me, it cannot be implemented in the project I am working on).
The HTML of the solution:
and the CSS:
I had the same problem yestoday. in ie9,text-overflow:ellipsis may be effected by it's first child element,for example:
if you set css iconfont for the first span,I mean font-family, it effects next the later texts.
and in ie8+
first-text's font-size effects text-ellipsis's ellipsis size.