css - Bootstrap vue / Bootstrap 侧导航可切换
问题描述
您好,我正在尝试使用 bootstrap-vue 创建侧导航。导航栏应与断点处的标题导航栏一起自动折叠 class="md"。header navbar作为expexted工作,但是sidenav在窗口通过断点时不会出现,也不会在通过断点时收缩。侧边栏的代码如下所示:
<template>
<b-nav vertical class="wrapper">
<b-collapse is-nav id="nav_collapse">
<b-nav-item to="/dashboard">Dashboard</b-nav-item>
<b-nav-item to="/play">Play</b-nav-item>
<b-nav-item to="/houses">Houses</b-nav-item>
</b-collapse>
</b-nav>
</template>
<script>
export default {
name: 'Sidebar',
data: () => {
return {
}
}
}
</script>
<style scoped>
.wrapper {
max-width: 100px;
min-height: 100vh;
float:left;
background-color:red;
}
</style>
知道如何解决这个问题吗?
解决方案
推荐阅读
- reactjs - 部署后生产构建中没有 service-worker.js
- ssl - SSL 连接立即关闭,Bandit15 Overthewire
- django - 如何将字符串传递给模板的元标记内容?
- amazon-web-services - Packer 在我的帐户中出现错误,未设置 AssumeRoleTokenProvider
- ruby - 如何在 Rails 5 数据库迁移中将带句点的字符串映射到符号?
- python - 如何清除应用程序缓存python?
- javascript - 在 Javascript 中创建输入元素 - 必需
- react-native - 使用 Detox 和 Expo 运行测试失败
- react-native - 多级滑动菜单 ReactNative(类似于 PrimeReact 的 Slide Menu)
- javascript - 我可以用 javascript 创建可点击的 td 标签吗?