【发布时间】:2015-11-12 23:52:14
【问题描述】:
我在申请的时候注意到了
text-transform: uppercase;
对于内联块跨度,firefox 在文本末尾添加一个空格。见演示:http://jsfiddle.net/matias/kt71jkLz/
此外,如果您使用 firebug 打开和关闭该 css 规则,firefox 会删除该空间并且不再添加它。 Chrome 根本不添加那个空间。
HTML
<span>Sample text</span>
CSS
span{display:inline-block; color: red; outline: 1px solid blue;}
span:first-letter{text-transform: uppercase;}
关于如何解决这个问题的任何想法?
【问题讨论】: