从移动网站(jQuery Mobile的)重定向到主站点风格萦绕 [英] Redirect from mobile site (jQuery mobile) to main site styles linger

查看:103
本文介绍了从移动网站(jQuery Mobile的)重定向到主站点风格萦绕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用jQuery Mobile和MVC 2.0我的移动网站。我有移动网站上的链接进入到主站点。问题是,当我降落在主网站上我的风格看起来仍然是jQuery Mobile的样式。如果我刷新页面,然后将它正确地显示在主站点的样式。

I am using jQuery mobile and MVC 2.0 for my mobile site. I have a link on the mobile site to go to the main site. The problem is that when I land on the main site my styles still look like jQuery mobile styles. If I refresh the page then it correctly shows the main site's styles.

我想知道如何给逼出来的jQuery Mobile的样式和/或确保我得到我的主网站的风格,当我登陆(登陆)页面上。

I am wondering how to force out the jQuery mobile styles and/or make sure that I get my main site styles when I land on the (login) page.

详细信息:网站IIS 7.5下供应。经典2.0(VB.NET)与集成亚健康上门2.0(MVC,jQuery Mobile的测试版3)主站点。开发ENVIRON的Windows 7 / VS 2010 / .NET 3.5。 (到Windows Server 2008上部署)

Details: Sites served under IIS 7.5. Main Site in Classic 2.0 (VB.NET) with "sub"-site in Integrated 2.0 (MVC, jQuery mobile beta 3). dev environ Windows 7 / VS 2010 / .NET 3.5. (to deploy on Server 2008)

感谢您的任何见解。

-Brian

推荐答案

这有可能是您的链接仍然由jQuery Mobile的AJAX导航系统导航;你可以通过把解决这个问题一个相对=链接外部属性:

It's possible that your link is still being navigated by the jQuery Mobile AJAX navigation system; you can get around this by putting a rel="external" attribute on the link:

<a href="www.fullsite.com" rel="external">Full Site</a>

这篇关于从移动网站(jQuery Mobile的)重定向到主站点风格萦绕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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