网站适合屏幕 [英] Website fit screen
问题描述
我已经将网站建立为固定版面配置,宽度为:1600像素,
,但较小分辨率的网页看起来太大了,
我应该做的是让它看起来不错
I have created my website as a fixed layout, with a width of : 1600px, but the webpage on smaller resolution looks too big, what am I supposed to do to make it looks good in every resolution?
感谢您的帮助
推荐答案
如 width:100%
。你可以通过使用 min-width
和 max-width
来限制这个限制。
Use relative measures, like width: 100%
. You can constrain this even more by using min-width
and max-width
.
除此之外,您还可以使用 CSS媒体查询
以生成仅在满足特定条件(如最小或最大宽度)时应用的样式。如果您使用它,您可以更改您的网站的整体外观和感觉,例如通过在较小的设备上隐藏部分或从较小的设备上的2列更改为1列文本演示文稿。
Apart from that, you can use CSS media queries
to make styles that only apply if certain conditions are met, like a minimum or maximum width. If you use that, you can change the whole look and feel of your website, for instance by hiding parts on smaller devices or change from a 2 column to a 1 column text presentation on smaller devices.
这篇关于网站适合屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!