【发布时间】:2025-12-27 12:55:11
【问题描述】:
【问题讨论】:
-
其中一个步骤是阅读从 bootstrap 3 到 v4 的迁移说明:getbootstrap.com/docs/4.0/migration
-
除了实际将 Bootstrap 从 3 更新到 4(使用 bower 等),您需要手动将 Bootstrap 3 的所有功能/用法更改为 4。例如,此
<li>@Html.ActionLink("Home", "Index", "Home")</li>更改为<li class="nav-item">@Html.ActionLink("Home", "Index", "Home", null, htmlAttributes: new Dictionary<string, object> { { "class", "nav-link" } })</li>
标签: visual-studio-2017 bootstrap-4 asp.net-core-2.0