控制器与行动
public class RentCarController : Controller
{
public ActionResult Cars()
{
return PartialView("Cars");
}
}
Cars.cshtml:
<script src="/plugins/bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<link href="/eliteadmin-material/bootstrap3/dist/css/bootstrap3.min.css" rel="stylesheet">
<!-- Date picker plugins css -->
<link href="/plugins/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css" rel="stylesheet" type="text/css" />
<div class="example">
<h5 class="box-title m-t-30">Date Range Pick</h5>
<input class="form-control input-daterange-datepicker" type="text" name="daterange" value="01/01/2015 - 01/31/2015" />
</div>
布局:
<head>
<link href="/eliteadmin-material/bootstrap4/dist/css/bootstrap4.min.css" rel="stylesheet">
</head>
Bootstrap 3和Bootstrap 4 Mixed =(它不起作用
问题:我使用了layout bootstrap 4。我可以在PartialView(“汽车”)中使用bootstrap 3;
编辑:它的Visual Studio有错误吗? =(
感谢您的回答