使网页适合所有屏幕尺寸/分辨率 [英] Make Web Page Fit All Screen Sizes / Resolutions

查看:164
本文介绍了使网页适合所有屏幕尺寸/分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将网页上传到服务器,并已在不同的屏幕尺寸和分辨率下对其进行了测试.在下载到较小的分辨率(例如800 x 600、640 x 480和240 x 320)之前,我的网页看起来不错.尽管我尚未对此进行测试,但我也想知道我的网站如何在小型便携式手持设备上下载-手持设备.

为了测试我的网页,我尝试更改正文代码,尝试使用宽度,边距,填充等无效.

谁能告诉我应该使用什么代码使我的网页扩展到所有分辨率?我已经上网寻找想法,但没有运气.

I have recently uploaded my web pages to a server and have been testing it in different screen sizes and resolutions. My web pages look good until I download to smaller resolutions such as 800 x 600, 640 x 480 and 240 x 320. Although, I haven''t tested for these yet I also wonder how my web site would download on small portable hand-held devices.

To test my web pages I have tried changing the code of the body, experimenting with width, margin, padding, etc to no avail.

Can anyone tell me what code I should be using to make my web page scalable to all resolutions? I have gone online looking for ideas but haven''t had any luck.

推荐答案

这是一篇很好的文章,可以帮助您获得主要思想:
http://coding.smashingmagazine.com/2009/06/02/fixed-vs-fluid-vs-elastic-layout-whats-the-right-one-for-you/ [
This is a good article which can help you to get the main ideas:
http://coding.smashingmagazine.com/2009/06/02/fixed-vs-fluid-vs-elastic-layout-whats-the-right-one-for-you/[^].

Using the keywords learned from this article, you will be able to find more detail of the appropriate techniques. And, of course, nothing can replace your logic, common sense and taste.

—SA


此外,请查看以下内容:
完美的流体宽度布局 [可扩展网站设计-为所有屏幕分辨率设计网站 [如何为所有屏幕分辨率设计网页 [
Also, look at these:
The Perfect Fluid Width Layout[^]
Expandable Website Design - Designing Websites For All Screen Resolutions[^]
How to Design Web Pages for All Screen Resolutions[^]


这篇关于使网页适合所有屏幕尺寸/分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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