html - 带有引导程序和个性化模板的 asp.net 母版页站点 - 侧边菜单未按预期用于便携式设备
问题描述
我正在使用带有个性化模板、SB Admin 2 和母版页的 bootstrap 4。这是我主人的头:
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Giano</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
</head>
出于某种原因,侧边菜单无法正常工作,这里是实时预览来测试侧边菜单的预期效果:https ://startbootstrap.com/previews/sb-admin-2
在我的项目中,底部按钮不起作用,所以我不能把它缩小到只显示图标,而且带有自动隐藏菜单(并显示经典汉堡图标)的移动设备适配也不起作用。菜单始终保持可见。我知道这个问题与<!-- Core plugin JavaScript-->
标签下方导入的位置有关,因为如果将那部分移到<body>
.
解决方案
推荐阅读
- c++ - 为什么我不能将绑定的成员函数作为可调用对象传递?
- android - react-native-fbsdk 0.8.0 包 com.facebook.reactnative.androidsdk 不存在
- c# - c# 仅基于一个 Filed 获取结构列表的所有元素
- java - 不同长度数组中的公共子序列
- xcode - ios模拟器的应用屏幕尺寸太小
- c# - 尝试根据另一个 ComboBox 值将绑定的 ObservableCollection 过滤到组合框不起作用
- python - Pygame:如何更改 Rect 的大小以为您的玩家创建一个有利的命中框
- haskell - 无法理解以未部分应用函数作为参数提供的高阶函数调用的结果
- python - 使用列表推导添加到列表中元组的第一个索引的函数
- r - 在现有 geom_sf 图层下方插入 geom_sf 图层