简体   繁体   中英

Typography basline & size changing when web site on live server

I have a rather bizarre situation, and it's not the first time I this has happened. I have a web site I am developing (a Wordpress template, but that's irrelevant in this context).

I have noticed a distinct shift in the baseline grid of the typography, as well as the SIZE of the type used in my web site template.

I have attached two screenshots. The first one is a preview of the web site on my local testing server (windows XP SP3 Apache 2.2.8) and the second is of the live site, hosted on a Debian Linux machine running Apache web server.

Can anyone throw some ideas around as to why this is happening? Is it a doctype issue? The doctype declared in the latest Wordpress header file is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Screenshots:

离线预览在线预览

Many thanks to all who contribute.

Looking at the screenshots, my first guess would be a "Zoom" setting that is stuck at 125% or a similar enlarged setting for the second screen shot.

If that's not it, we need more info.

  • What browser(s) are you seeing this in
  • Is this on the same machine
  • Do all style sheets get loaded
  • Calls for seeing some code will follow soon :)

您应该在两个测试案例中验证HTML,CSS和JS是否相同。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM