开发者

Why doesn't IE render letter-spacing after the last letter?

<span style="letter-spacing: 5px;">Red<span s开发者_Go百科tyle="letter-spacing: 0px;">Blue</span></span>

Looks like this in IE:

R e dBlue

But like this in other browsers:

R e d Blue

Is there any way I can get IE to render it the way other browsers do?


It looks like your code is off above. You have not closed the first span where I think you want it to be closed.

Try this first

<span style="letter-spacing: 5px;">Red</span><span style="letter-spacing: 0px;">Blue</span>

If that doesn't fix it, why not add a &nbsp; between them, like so:

<span style="letter-spacing: 5px;">Red</span>&nbsp;<span style="letter-spacing: 0px;">Blue</span>

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜