我有一页,在FF(3x,4x) Chrome,IE(6,7,8)。
When tested on IE9 the texts are wider. Investigating the problem it appears that the text is actually rendered whith letters more spaciated than in other borwsers.
When changed the letter spacing to -0.6px the texts was rendered ok, similar to other browsers. Also when changed the render mode to "Compatibility view", the page looks just fine.
你们是否知道如何改变这种方式?
我用有条件的评论“解决”了这个问题,但我对此并不感到非常高兴。
<!--[if IE 9]>
<style>
* {letter-spacing: -0.6px;}
</style>
<![endif]-->
Does any other methods exists to solve the problem?
我对不同的机器和不同的浏览器进行了几次筛选,结果见。
如你所知,在拥有不同浏览器的不同机器上,结果相同。 唯一造成不同情况的是标准模式中的E9。 来文方网页
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title></title>
<style type="text/css">
body {margin:0;padding:0;}
</style>
</head>
<body>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc semper.
</body>
</html>