JQUERY UI 主题 css 未应用于 ASP.NET MVC 4 Web 项目

标签 jquery asp.net user-interface themes asp.net-mvc-4

我下载了 jquery ui 主题的 redmond 主题。将 redmond 下的所有内容复制到\content\themes,将 jquery-ui-1.8.21.custom.min.js 复制到\scripts,将 jquery 更新为 jquery-1.7.2.js 并将以下内容添加到 _Layout.cshtml。 但是,用户界面似乎没有改变。

     <meta charset="utf-8" />
    <title>@ViewBag.Title - My ASP.NET MVC Application</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <link href="@System.Web.Optimization.BundleTable.Bundles.ResolveBundleUrl("~/Content/css")" rel="stylesheet" type="text/css" />
     <link href="@Url.Content("~/Content/themes/redmond/jquery-ui-1.8.21.custom.css")" rel="stylesheet" type="text/css" />
      <script src="@Url.Content("~/Scripts/jquery-1.7.2.min.js")" type="text/javascript"></script>
     <script src="@Url.Content("~/Scripts/jquery-ui-1.8.21.custom.min.js")" type="text/javascript"></script>
    <meta name="viewport" content="width=device-width" />


Here is the structure of the Content folder
Content
   Themes
     base
     redmond
       images
       jquery-ui-1.8.21.custom.css
    Site.css
Scripts
   jquery-1.7.2.min.js
   jquery-ui-1.8.21.custom.min.js

最佳答案

事实上,它正在发挥作用。我从包中的 index.html 复制了一些 ui 控件到我的网页。它工作正常。

关于JQUERY UI 主题 css 未应用于 ASP.NET MVC 4 Web 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11195127/

相关文章:

jquery - 左右固定菜单切换

c# - IIS 8.5 覆盖自定义 JSON 错误响应,而是返回默认的 500 错误响应页面。如何让 IIS 8.5 返回我的自定义错误?

ASP.NET 编译器更新到版本 5.2.2 后无法加载 System.Web.Mvc

html - Google Zeitgeist 2011 可视化

JQuery 动画运行不流畅,滚动条和 DIV 动画出现大量闪烁

javascript - 在提交按钮上注册单击事件时,表单输入中所需的属性不起作用

javascript - 使用计算结果自动填充输入字段

c# - 打开内容已填满的 outlook 新电子邮件窗口

ios - Xcode Storyboard - 带有多行标签的多个堆栈 View

java - 根据显示分辨率调整 SWT UI 元素