具有移动模式的 iFrame

iFrame with Mobile mode

我的网站 http://asmgx.com 是为更长的 links

创建一个短 URL

网站本身自动调整为移动或桌面模式 我可以在移动模式下完美地查看网站(维度)

但是当我在上面查看 link 时说 http://asmgx.com/rjk 它以桌面模式显示。

我的意思是当我将 iFrame 分配给 link 时,link 仍处于桌面模式

我应该怎么做才能让 iFrame 根据它查看的设备显示 src link。

我的密码是

.aspx 文件

<iframe id="frmURL" runat="server" frameborder="0" height="100%" width="100%"></iframe>

.aspx.cs 文件

                    this.frmURL.Attributes.Add("src", sURL);
                    this.frmURL.Attributes.Add("style", "overflow: hidden; overflow-x: hidden; overflow-y: hidden; height: 100%; width: 100%; position: absolute; top: " + iFrameTop.ToString() + "px; left: 0px; right: 0px; bottom: 0px");

我会使用 <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> 来得到一个响应速度更快的网站, 而不是 iFrame