我们如何调整可能适合我们的网络浏览器的网页大小? [英] how we can adjust web page size that might be fit to our web browser?

查看:100
本文介绍了我们如何调整可能适合我们的网络浏览器的网页大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何调整可能适合我们的Web浏览器的网页大小?

how we can adjust web page size that might be fit to our web browser?

推荐答案

您使用CSS来创建可以适应不同分辨率的样式. 教程 [ ^ ]

如果您需要比CSS所能提供的更具动态性,还可以将javascript引入其中.如果您需要这样做,我建议您使用jquery库,因为已经解决了许多跨浏览器的问题.
You use CSS to create styles that can adjust to different resolutions. Tutorial[^]

If you need to be more dynamic than CSS can provide for you, you can also bring javascript into it. If you need to do that, I would suggest using jquery libraries as a lot of the cross-browser issues will already be dealt with.


我确定尝试调整页面大小只是一个错误的主意.而且,在布局引擎之间的差异发挥作用的地方,您将永远无法赢得无限比赛. :-)

相反,您应该更好地接受流体液体弹性设计的思想:
http://speckyboy.com/2010/05 /30/liquid-fluid-and-elastic-layout-templates-tools-and-frameworks/ [ http://www.sitepoint.com/liquid-design/ [ http://www.thesitewizard.com/webdesign/liquid-elastic-fixed-relative- layout.shtml [ ^ ].

另请参阅我过去有关相关主题的答案:
在不同浏览器中运行时,网页布局也会发生变化. [ ^ ],
以php格式获取屏幕宽度? [
I''m sure the attempt to adjust a page size is just a wrong idea. And, where the differences between layout engines come into play, you will never win the infinite race. :-)

Instead, you should better embrace the ideas of fluid, liquid and elastic designs:
http://speckyboy.com/2010/05/30/liquid-fluid-and-elastic-layout-templates-tools-and-frameworks/[^],
http://www.sitepoint.com/liquid-design/[^],
http://www.thesitewizard.com/webdesign/liquid-elastic-fixed-relative-layout.shtml[^].

Please also see my past answers on related topics:
webpages layout change when running in different browsers.[^],
get screen width in php?[^].

—SA


这篇关于我们如何调整可能适合我们的网络浏览器的网页大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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