【发布时间】:2013-08-18 21:05:46
【问题描述】:
http://www.alecos.it/new/125027/125027.php此链接是我的问题的一个示例...我使用 png 1x16 来绘制行...这些行在发布的链接中可见...我的问题是:
为什么在 IE 6/8、FireFox、Opera、Safari 和其他浏览器下,行与文本完美对齐,而在 IE 9/10/11 下,文本不适合行?
我使用了一个简单的 css:
/* Style Source Code */
.code {
border-radius: 7px;
border: #6666FF 1px solid;
background-color: #FFF5EE;
background-image: url("../bkg/Bkg_116.png"); /* Horizontal Rows */
background-repeat: repeat;
background-position: 0 10px;
}
/* Style Source Code */
.xcode {
color: #008000;
font-family: 'Courier New', Courier, FreeMono, 'Nimbus Mono L', monospace;
font-size: 13px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
}
/* Style Div */
.alignment {
line-height: 20px;
text-align: justify;
}
希望在解决方法中解决问题...
这是我的 css:http://www.alecos.it/css/alecos.css
【问题讨论】:
-
调整行高:16px;在 .xcode 类中检查这个 [Finding/setting css line-height defaults][1] [1]: stackoverflow.com/questions/7849506/…
标签: css cross-browser compatibility