Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css bootsrap 4导航栏未保持展开状态_Css_Bootstrap 4 - Fatal编程技术网

Css bootsrap 4导航栏未保持展开状态

Css bootsrap 4导航栏未保持展开状态,css,bootstrap-4,Css,Bootstrap 4,我面临的问题是,当在较小的视口中查看站点时,导航栏的切换按钮会正确显示,我可以单击它以展开导航栏,但导航栏会立即再次折叠。所以我点击它,它会展开,但会再次关闭。下面是目前使用的全部html代码。有人能发现任何问题吗 阿马尔菲五星-阿马尔菲海岸假日酒店 版权及副本;阿马尔菲五星 window.cookieconsent.initialise({ “调色板”:{ “弹出窗口”:{ “背景”:“000” }, “按钮”:{ “背景”:“f1d600” } }, “主题”:“

我面临的问题是,当在较小的视口中查看站点时,导航栏的切换按钮会正确显示,我可以单击它以展开导航栏,但导航栏会立即再次折叠。所以我点击它,它会展开,但会再次关闭。下面是目前使用的全部html代码。有人能发现任何问题吗


阿马尔菲五星-阿马尔菲海岸假日酒店
版权及副本;阿马尔菲五星 window.cookieconsent.initialise({ “调色板”:{ “弹出窗口”:{ “背景”:“000” }, “按钮”:{ “背景”:“f1d600” } }, “主题”:“无边”, “内容”:{ “href”:“amalfifivestars.com/privacy” } });
我实际上找到了解决方案:基本上我更改了下面这行代码

<asp:ScriptReference Path="Scripts/bootstrap.js"/>



现在导航栏正在正确地展开和折叠

您能创建一个工作示例吗?我有它,但我现在解决了问题,我将添加有问题的解决方案
<asp:ScriptReference Path="Scripts/bootstrap.bundle.js"/>