At my new company I am maintaining a VB.Net webforms application. We are seeing an issue when viewing the site on an iPad that can be fixed by Requesting Desktop Site in either Chrome or Safari. Is there a way to force this in code so the user does not have to hold the refresh button in Safari and request the desktop site?
UPDATE: We are using Telerik controls and the functionality changes when its displayed on an iPad vs a browser on a desktop. When I pull up the page on an iPad the textbox filters will not work until I select Request Desktop Site, see below for wrong incorrect version.
Here is what it looks like after that is selected and normally on a desktop browser.
So I need a way to force the browser to request the desktop site/version when viewing on an iPad.
答案 0 :(得分:0)
没有一些例子很难对此发表评论,但我想我知道如何获得你想要的结果。在页面的HTML中:
<meta name="viewport" content="width=device-width, initial-scale=1">
来源here。
这应该可以解决您在所有浏览器中看到的问题,如果它是我认为的那样。
编辑:问题已经明显更新,这绝对不是正确的答案。