跟著做的,為什么我把helloworld組件里style中的內(nèi)容刪了會(huì)報(bào)錯(cuò)呃
<style scoped>? ? ?<!-- Add "scoped" attribute to limit CSS to this component only -->
h1, h2 {
? font-weight: normal;
}
ul {
? list-style-type: none;
? padding: 0;
}
li {
? display: inline-block;
? margin: 0 10px;
}
a {
? color: #42b983;
}
</style>
2019-05-23
style里面可以是空的 但是<style></style>的標(biāo)簽不能沒有 不然編譯的時(shí)候會(huì)錯(cuò)吧
話說報(bào)錯(cuò)的截圖你也沒上