开发者

why are fonts larger when .html page is put on the server?

开发者 https://www.devze.com 2023-03-28 19:00 出处:网络
I wrote a simple page with a header and a lot of text for the body. While I was writing, I tested the page locally on chrome and firefox and the font size seemed to follow what I specified in the css

I wrote a simple page with a header and a lot of text for the body. While I was writing, I tested the page locally on chrome and firefox and the font size seemed to follow what I specified in the css file. However, after I uploaded the html page to the server and looked at it on the specified web address, all the fonts in the body looks 20% larger than what I specified in the css doc.

I am looking for any tips anyone can provide to help me fix this weir开发者_JS百科d bug.

Thanks!


I once encountered this too. I had a local version of my homepage and the uploaded version appeared larger. When I looked into it I found out that it was just the browsers zoom-level that was set differently. I don't exactly know why but I could easily change it.

0

精彩评论

暂无评论...
验证码 换一张
取 消