[求]最简单方案获取客户端 screen 分辨率 在线等

Server_Transfer 2005-08-26 04:34:33
如题
...全文
232 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
bflovesnow 2005-09-05
  • 打赏
  • 举报
回复
b/s 和 c/s 的方式上面都全了,hehe.
孟子E章 2005-09-05
  • 打赏
  • 举报
回复
服务器端获得

http://sz.luohuedu.net/xml/ShowDetail.asp?id=HLFQ4ZOY-N3GO-4R7Y-WY5R-XZZN2JY5J8HZ
ckvip 2005-09-05
  • 打赏
  • 举报
回复
最简方式
在html页面放入2个hiden input,名字是WidthPixel和HeightPixel,然后写js脚本
-------------------------------------
<SCRIPT LANGUAGE=javascript>
Form1.WidthPixel.value=window.screen.width;
Form1.HeightPixel.value=window.screen.height;
</SCRIPT>
Server_Transfer 2005-08-30
  • 打赏
  • 举报
回复
八仙过海,各显神通
fish__net 2005-08-27
  • 打赏
  • 举报
回复
得到显示器分辨率
Dim X As Short = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width
Dim Y As Short = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height
MsgBox("您的显示器分辨率是:" & X & " X " & Y)
koenemy 2005-08-27
  • 打赏
  • 举报
回复
this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height;
this.Width = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;
zairwolfi 2005-08-27
  • 打赏
  • 举报
回复
c#又不是aspx,怎么会有楼上楼上的链接?
KenChan 2005-08-26
  • 打赏
  • 举报
回复
System.Drawing.Rectangle rect = Screen.GetWorkingArea(this);
int iWidth = rect.Width;
int iHeight = rect.Height;
wwwcampus 2005-08-26
  • 打赏
  • 举报
回复
http://www.66study.com/Article/web/ASP/yingyong/200506/47175.html
pupo 2005-08-26
  • 打赏
  • 举报
回复
Dim desktopSize As Size
desktopSize = System.Windows.Forms.SystemInformation.PrimaryMonitorSize
screenHeight = desktopSize.Height
screenWidth = desktopSize.Width
TechEye 2005-08-26
  • 打赏
  • 举报
回复
Screen.PrimaryScreen.Bounds.Width
Screen.PrimaryScreen.Bounds.Height

110,536

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧