为什么我的网站在实时服务器上显得比在本地部署时要小? [英] Why does my website appear smaller on a live server than when deployed locally?

查看:39
本文介绍了为什么我的网站在实时服务器上显得比在本地部署时要小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在localhost设计了一个网站.但是,当我将其上载到实时服务器上时,它比在本地主机上部署时要小.我已经在所有浏览器中将zoom属性设置为100%,但这没什么区别.

I designed a website in localhost. But when I upload it on live server it is smaller than it is when deployed on localhost. I had set the zoom properties in all browsers to 100%, but that made no difference.

这是在本地主机(大型)上 http://postimage.org/image/rcihvhvx5/
和实时服务器(小型)上 http://postimage.org/image/5jfq4gqjl/

This is on localhost (big) http://postimage.org/image/rcihvhvx5/
and on live server (small) http://postimage.org/image/5jfq4gqjl/

为什么会这样?

推荐答案

为什么不尝试安装 Firebug 并进行探索你自己?

Why not try installing Firebug and explore this for yourself?

安装此工具后,您将可以转到任何网页,并发现如何在页面上呈现所有元素.

With this tool installed you'll be able to go to any webpage and discover how all the elements are being rendered on the page.

右键单击页面的任何部分,然后选择检查元素"以获取所有关联的样式信息.

Right click on any part of the page and then select "inspect element" to get all the associated style information.

如果您发现本地版本和远程版本的CSS信息都相同,则必须将浏览器设置为以不同的方式查看两个不同的URL.

If you find that the CSS information is the same for both your local and remote versions, then it must be the case that your browser is set to view the two different URLs in a different way.

您尝试过使用其他浏览器吗?

Have you tried a different browser?

这篇关于为什么我的网站在实时服务器上显得比在本地部署时要小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆