【发布时间】:2015-04-09 14:36:39
【问题描述】:
我目前正在开发一个 Visual Basic Web 应用程序。如果用户通过手机访问该应用程序,则应将其发送到该网站的移动版本。但是,如果它是平板电脑(或台式机),它仍应访问完整站点。
这是我目前所拥有的,但它没有考虑不同的像素密度等等。
If Request.Browser.ScreenPixelsWidth < 600 And Request.Browser.ScreenPixelsHeight < 1024 And Request.Browser.IsMobileDevice Then
Response.Redirect("http://localhost:9999/mobile")
End If
在此感谢您
【问题讨论】:
标签: asp.net vba mobile web webforms