本文介绍了魔鬼怎么得到屏幕分辨率?? !!?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 哎呀!我有一个c#.net Web应用程序。我需要将屏幕高度 和宽度检索到变量中。我知道这是非常愚蠢的,但是怎么回答 我应该做什么?!?!?! 复制到 ri ******* @ gmail.com 也非常感谢。 谢谢提前。 解决方案 什么样的决议,有几个:) /> 请参阅 SystemInformation.PrimaryMonitorSize SystemInformation.WorkingArea SystemInformation.VirtualScreen Screen.PrimaryScreen.Bounds Screen.PrimaryScreen.WorkingArea 我怀疑其中任何一个是他想要的,因为这会得到你正在运行的服务器的分辨率 我希望他想要分辨率 分辨率(注意他确实说过网络应用程序)。这需要在 客户端脚本中完成,该脚本填充变量,然后将其返回到服务器以供读取。在javascript中查询的值将是 window.screen.width和window.screen.height。 - Tom Porterfield ARGH! I have a c#.net web application. I need to retrieve screen heightand width into a variable. I know this is incredibly stupid but HOW THEHECK DO I DO IT??!?!?!A copy to ri*******@gmail.com would be much appreciate also.Thanks in advance. 解决方案 What kind of resolution, there are several one :) See SystemInformation.PrimaryMonitorSize SystemInformation.WorkingArea SystemInformation.VirtualScreen Screen.PrimaryScreen.Bounds Screen.PrimaryScreen.WorkingAreaI doubt any of that is what he wants since that would get the resolution ofthe server you are running on and I would expect he wants the cleintresolution (note he did say web application). This would need to be done inclient side script that populates variables that would then be posted backto the server for reading. The values to query in javascript would bewindow.screen.width and window.screen.height.--Tom Porterfield 这篇关于魔鬼怎么得到屏幕分辨率?? !!?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-22 23:37
查看更多