开发者

IE9 hyphenation problem - hyphen at start of line

开发者 https://www.devze.com 2023-03-22 22:56 出处:网络
In IE9, some posts on our blog hyphenate strangely, with the hyphen appearing on the line after the word break.

In IE9, some posts on our blog hyphenate strangely, with the hyphen appearing on the line after the word break. For example, in http://yochicago.com/airbnb-%E2%80%93-illegal-short-term-rentals-galore/23326/ "short-term," in the first paragraph, breaks as follows:

short

-term

I've seen this a few other times with this site and another site in development. And o开发者_运维百科nly in IE9. Compatibility mode "fixes" it.

Since I've been unable to find others writing about this same problem on the Web, I can only assume I've got something amiss in my CSS, but I can't figure it out.

So, two questions:

1. Is anyone else seeing this behavior in IE9?

2. Any suggestions on how to fix it?


I don't know what is causing the problem, but a quick fix is to apply:

<span style="white-space:nowrap">short-</span>term 
0

精彩评论

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