vue.js - 仿vue-material docs,就是左侧菜单不出来

查看:126
本文介绍了vue.js - 仿vue-material docs,就是左侧菜单不出来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

参考https://vuematerial.github.io/,仿照项目,现在的问题是全屏或大尺寸显示时,左侧菜单不出来,小尺寸时能显示菜单按钮。对照了vue-material 项目,实在找不出问题。

解决方案

的确是这样,但还没明白为什么。现在调整了css导入地方,在index.html

    <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700,400italic">
    <link rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons">

    <link rel="stylesheet" href="/static/vue-material.css">

以前vue-material.css 的导入是在主入口 main.js

// import 'vue-material/dist/vue-material.css';

参考了网上另一个项目的写法,放到 index.html,现在可以了,但没明白有什么区别,请指教。

这篇关于vue.js - 仿vue-material docs,就是左侧菜单不出来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆