将Bootstrap添加到Site.Master

问题描述 投票:1回答:1

我需要在site.master页中添加引导程序。我这样做是为了实现这一点:

<asp:ScriptManager runat="server">
            <Scripts>
                <%--To learn more about bundling scripts in ScriptManager see https://go.microsoft.com/fwlink/?LinkID=301884 --%>
                <%--Framework Scripts--%>
                <asp:ScriptReference Name="MsAjaxBundle" />
                <asp:ScriptReference Name="jquery" />
                <asp:ScriptReference Name="bootstrap" path="~/Scripts/bootstrap.js" />

                <%--Site Scripts--%>
            </Scripts>

这是否足够,或者我是否也需要添加对bootstrap.min.js的引用,如果我在哪里应该添加它。

asp.net bootstrap-4
1个回答
1
投票
根据bootstrap软件包中的js文件替换文件名1、2等。以下是带有引导程序文件的示例文件夹屏幕快照。

Usual bootstrap css files

© www.soinside.com 2019 - 2024. All rights reserved.