Superscript “L” Symbol Sprinkled in text in Internet Explorer

岁酱吖の 提交于 2019-12-20 03:50:59

问题


I'm working on a site that is very text heavy and the site looks fine in Chrome, Firefox and Safari. But when I test it in Internet Explorer it has random scattered superscript "L" Symbols on the text. I looked back to the code to see if there was anything extra written in it causing the L but there was nothing. The main problem is on the homepage.

Here's the site: http://emilymagnuson.com/mynews2/index.html

And you have to look at it in IE to see the problem.


回答1:


Looking at the HTML of your website, you have extraneous characters in your text where the Ls are appearing. Your HTML specifies UTF-8. You need to be certain that your editor is saving your text in UTF-8 and not in something else. Deleting those extra characters should clear the problem. I was using Notepad++ as my editor, and they showed up clearly. I saw the Ls in Opera so it is not just an IE problem.




回答2:


Internet Explorer sometimes renders text differently than other browsers. My suggestion is to create a separate stylesheet specifically for IE. In that stylesheet only allow it to use serif fonts in the paragraph tags like this:

Enter this on the main CSS

<![if !IE]>
 <link rel="stylesheet" type="text/css" href="not-ie.css" />
<![endif]>

In the not-ie-css:

p {
 font-family: serif;
 }


来源:https://stackoverflow.com/questions/15092218/superscript-l-symbol-sprinkled-in-text-in-internet-explorer

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