combres创建指向head元素中文件的链接,但页面呈现没有样式或脚本

时间:2012-03-20 01:15:57

标签: c# asp.net-mvc-3 combres

我使用Combres的asp.net MVC 3网站在我的工作站上渲染得很好。当我在笔记本电脑上编译相同的代码时,combres链接在那里有正确的路径,但页面呈现没有样式。当我在有效的网站上使用firebug时,我将以下类附加到html元素:

class =“js no-flexbox flexbox-legacy canvas canvastext webgl no-touch geolocation postmessage no-websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients no-cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg smil svgclippaths“

此类集不会出现在我的笔记本电脑网站上。 Log4Net显示没有错误。

当我在firebug中扩展combres文件链接时,它会显示“重新加载页面以获取源代码:...”不用说,这不起作用。

两个系统都运行Windows 7 64位和IIS 7.5。它在我的笔记本电脑上的IE也不起作用。当我从笔记本电脑进入工作站点时,它也可以工作。

任何想法都会受到最高的赞赏。我完全失去了。

1 个答案:

答案 0 :(得分:0)

新的flexbox已投放到modernizr中,但截至目前的浏览器支持仅为Chrome 17 +。

这就是为什么在构建面板中检查flexbox只会将flexbox CSS类添加到HTML标记,而不是flexbox-legacy。

您可以使用旧版modernizer.js。如果不需要,甚至可以删除该文件。

相关问题