屏幕尺寸(带屏幕) [英] SIZE of screen (with of screen)

查看:95
本文介绍了屏幕尺寸(带屏幕)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我用asp.net设计一个网站。

在某些显示器上我的网站很少。屏幕的左侧和右侧是空白的。

如何将它设置为标准尺寸?

感谢



我尝试过:



i不知道使用进程以另一个大小测试它

hello
i design a web site by asp.net.
in some monitors the with of my web site is little. the left and right of screen is blank.
how can i set it to standard size?
thanks

What I have tried:

i don't know to use a process to test it in another size

推荐答案

没有标准尺寸这样的东西。



你不需要屏幕的宽度。您需要浏览器客户区的宽度,这在CSS中很容易处理。



谷歌的响应式网页设计 [ ^ ]并开始阅读。



但是,请记住,您不希望您的网站跨越整个宽度在所有情况下的浏览器。如果你试图让你的网站粘在浏览器的两侧,那么在超级监视器上全屏显示浏览器的人会让你的网站看起来很傻。你真的应该支持两边都有空条的最大宽度,以保持你的网站看起来不错。
There is no such thing as a "standard size".

You don't need the width of the screen. You need the width of the browser's client area, which is easily handled in CSS.

Google for "Responsive Web Design[^]" and start reading.

But, keep in mind that you don't want your site to span the entire width of the browser in all situations. Someone who has their browser full screen on a super-side monitor is going to make your site look really silly if you try to keep your site glued to the sides of the browser. You really should support a maximum width with empty bars on both sides, to keep your site looking nice.


这篇关于屏幕尺寸(带屏幕)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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