您可以通过此处滚动自己的主题,然后在弹出layout.cshtml
页面中对其进行编码
<head>
<meta charset="utf-8" />
<title>@ViewBag.Title - My ASP.NET MVC Application</title>
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta name="viewport" content="width=device-width" />
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
if (!string.isNullOrEmpty(Reuqest.QueryString["useCSS"])
{
@Styles.Render("~/Content/css/"+Reuqest.QueryString["useCSS"])
}
</head>
但由于您没有提供任何代码、项目布局、描述等。我只是假设您的意思是一个完整的弹出窗口,而不仅仅是一个 jquery.ui.dialog 对象。
编辑
此解决方案要求您为新主题创建捆绑器方法。
bundles.Add(new StyleBundle("~/Content/themes/base/css/themeName").Include(
"~/Content/themes/themeName/jquery.ui.core.css",
"~/Content/themes/themeName/jquery.ui.resizable.css",
"~/Content/themes/themeName/jquery.ui.selectable.css",
"~/Content/themes/themeName/jquery.ui.accordion.css",
"~/Content/themes/themeName/jquery.ui.autocomplete.css",
"~/Content/themes/themeName/jquery.ui.button.css",
"~/Content/themes/themeName/jquery.ui.dialog.css",
"~/Content/themes/themeName/jquery.ui.slider.css",
"~/Content/themes/themeName/jquery.ui.tabs.css",
"~/Content/themes/themeName/jquery.ui.datepicker.css",
"~/Content/themes/themeName/jquery.ui.progressbar.css",
"~/Content/themes/themeName/jquery.ui.theme.css"));