这是所有弹出窗口的问题。他们表示,但css是一团糟 http://s21.postimg.org/z35pliu7b/datepicker.jpg 我正在使用MVC 5.2,Bootstrap 3.3和jQuery 2.1 这是我的cshtml文件
@using BetTracker.App_GlobalResources
@model BetTracker.Models.TipsterModel
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<div class="form-group">
@Html.LabelFor(model => model.DueDate, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.DueDate, new { htmlAttributes = new { @class = "form-control", @id = "duedate" } })
@Html.ValidationMessageFor(model => model.DueDate, "", new { @class = "text-danger" })
</div>
</div>
</div>
}
<script>
$(function() {
$('#duedate').datepicker({
});
})
</script>
这就是我在布局中渲染的内容:
@Styles.Render("~/Content/css")
@Styles.Render("~/Content/themes/base/css")
@Scripts.Render("~/bundles/modernizr")
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
@Scripts.Render("~/bundles/jqueryui")
@RenderSection("scripts", required: false)
我不知道还有什么对显示有帮助,但任何帮助解决问题并使弹出窗口正确显示将不胜感激。 感谢。