当前位置: 动力学知识库 > 问答 > 编程问答 >

wordpress - Webkit / Firefox alignment issue

问题描述:

I'm stumped here. I've got maybe 2-3 pixel difference with my header text (img) when displayed in FF vs an webkit browser. Not a whole lot going on in this page. Both the CSS and HTML validates. Doesn't appear to be and text zoom related. What am I missing?

www.caribouhouse.com

网友答案:

There's a hack for overwriting a css rule in firefox 3 , you can use this :

.foo{}/* other browsers */
.foo, x:-moz-any-link { } /* FireFox 2 */
html>/**/body .foo, x:-moz-any-link, x:default { } /* Only FireFox 3 */

网友答案:

FF and WebKit use different methods/algorithms to render text. Even WebKit by itself uses more than one method to render text, depending. Because of kerning etc it's normal to see different implementations have a difference of a few pixels when rendering text, even when the text is the same font in both cases.

分享给朋友:
您可能感兴趣的文章:
随机阅读: