出现背景
<template> <div class="container"> <h2>一级路由区----主页</h2> <router-link to="home/user" tag="button">点击进入用户管理</router-link> <keep-alive> <router-view></router-view> </keep-alive> </div> </template> <script> export default { name: 'HomeView', } </script> <style scoped> .container { height: 100vh; display: flex; margin: 10px 100px; } .button{ height: 50px; background-color: #9999; outline: none; border: none; color:#fff, padding: auto; } </style>
如何解决
就是因为上一条语句你写错了,或者没有完结符号
或者
直接加 ;就解决了
semi-colon expectedcss(css-semicolonexpected)
最新推荐文章于 2024-05-20 21:25:16 发布