gpt4 book ai didi

c# - 捆绑后未将 Jquery UI css 添加到我的元素中

转载 作者:行者123 更新时间:2023-11-28 08:39:22 25 4
gpt4 key购买 nike

我将 jquery ui 添加到我的小元素中,但没有添加 css。

以下包用于 css:

bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
"~/Content/themes/base/jquery.ui.core.css",
"~/Content/themes/base/jquery.ui.resizable.css",
"~/Content/themes/base/jquery.ui.selectable.css",
"~/Content/themes/base/jquery.ui.accordion.css",
"~/Content/themes/base/jquery.ui.autocomplete.css",
"~/Content/themes/base/jquery.ui.button.css",
"~/Content/themes/base/jquery.ui.dialog.css",
"~/Content/themes/base/jquery.ui.slider.css",
"~/Content/themes/base/jquery.ui.tabs.css",
"~/Content/themes/base/jquery.ui.datepicker.css",
"~/Content/themes/base/jquery.ui.progressbar.css",
"~/Content/themes/base/jquery.ui.theme.css"));

在我的 _Layout.cshtml 中包含以下内容:

 @Styles.Render("~/Content/themes/base/css", "~/Content/css")

Global.asax.cs 已将 BundleConfig 设置为在 Application_Start() 上注册....

我清除了我的 firefox 缓存,但我仍然只在我的页面上获得默认的 bootstrap.css 和 site.css。

有什么想法吗?我不确定这里还有什么要检查的,我有一些对话框我在玩 crud 功能,但它们没有风格。

最佳答案

在浏览器中查看源代码并确保 CSS 未缩小。我在 IIS 7 中进行了部署, bundle 采用了缩小的 CSS,这是 IIS 不喜欢的。

关于c# - 捆绑后未将 Jquery UI css 添加到我的元素中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27889627/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com