在controller里面加上下面一句 HttpContext.SetOverriddenBrowser(BrowserOverride.Mobile); 转载于:https://www.cnblogs.com/kenny999/p/3933014.html