Asp.NET网站上的解决方案 [英] Resolution in Asp.NET website
本文介绍了Asp.NET网站上的解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在ASP.NET网站中将分辨率设置为4:3。
How to set resolution as 4:3 in an ASP.NET Website.
推荐答案
首先,您可能不明白什么是分辨率。因为它几乎无关紧要,我不会解释得太多;只会告诉你:分辨率是每毫米点数,每英寸点数,每毫米线数或每英寸线数,取决于物理介质,所以你无法控制它。
你的意思是另一回事,叫做宽高比:
http://en.wikipedia.org/wiki/Aspect_ratio [ ^ ],
http://en.wikipedia。 org / wiki / Aspect_ratio_(图片) [ ^ ]。
怎么办?即使你可以控制它,你应该。只是不要。请参阅我过去的回答:
获取屏幕分辨率 [ ^ ]。
原则上,您可以使用CSS定义大多数对象样式的width
和height
属性,所以你可以说,放置一些这样的对象(例如,div
),例如,将它放在页面上。然后你需要在其中使用元素的绝对位置,依此类推。最好不要这样做。
-SA
First of all, you probably don't understand what is resolution. As it is pretty much irrelevant, I don't wont to explain it much; will just tell you: resolution is dots-per-mm, dots-per-inch, lines-per-mm or lines-per-inch, depends on physical media, so you cannot control it.
What you mean is a different thing, called aspect ratio:
http://en.wikipedia.org/wiki/Aspect_ratio[^],
http://en.wikipedia.org/wiki/Aspect_ratio_(image)[^].
What to do with it? Even though you can control it, you should. Just don't. Please see my past answer:
To Get Screen resolution[^].
In principle, you can use CSS to definewidth
andheight
attribute of a style of most objects, so you can, say place some object like that (say,div
) and, for example, center it on a page. And then you would need to use absolute positions of elements inside it, and so on. Better don't do it.
—SA
这篇关于Asp.NET网站上的解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文