我可以得到用户的显示器分辨率吗? [英] Can i get user's monitor resolution?

查看:95
本文介绍了我可以得到用户的显示器分辨率吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发.net Web应用程序.但是,我想知道是否可以通过c#或javascript或jquery获得用户的屏幕分辨率?

预先感谢.

I am developing .net web application. But, i was wondering that is there a way to get a user''s screen resolution in c# or javascript or jquery?

Thanks in advance.

推荐答案

<html>

<head>
    <script type="text/javascript">
// get width of scree
document.write(screen.width);
// get height of screen

document.write('*');

document.write(screen.height);
</script>
</head>
<body>

</body>

</html>


阅读:
http://stackoverflow.com/questions/1271675/jquery-screen-resolution-height-adjustment [ ^ ]
Read this :
http://stackoverflow.com/questions/1271675/jquery-screen-resolution-height-adjustment[^]


y您想知道吗,每个用户的屏幕分辨率可能不同!
请简要解释您的问题
y do u want to know,each user may have different screen resolution!!
please explain your question briefly


这篇关于我可以得到用户的显示器分辨率吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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