1.在components下面新建一个grid.vue的文件,在文件里放入内容

2.在css里新建一个grid.css文件,把grid.vue需要的样式放进来

3.在router里的index.js里import,import 文件名 from 文件存放的路径;并在routes下面写好路由

4.在main.js里引入grid.css的样式,import '路径名'

1.在components下面新建一个grid.vue的文件,在文件里放入内容
2.在css里新建一个grid.css文件,把grid.vue需要的样式放进来
3.在router里的index.js里import,import 文件名 from 文件存放的路径;并在routes下面写好路由
4.在main.js里引入grid.css的样式,import '路径名'
本文标题:在vue下面创建新页面并引入样式(图文讲解)
本文链接:https://www.haomeiwen.com/subject/rfcanctx.html
网友评论