1.stylus 在 webstorm 中出现红色波浪线
但是不影响浏览器效果, 也不报错
- <style lang="stylus" scoped>
- article
- display flex
- background lightblue
- height 0.64rem// 此处数字处
- .left
- float left
- .center
- flex 1// 此处数字处
- background white
- .right
- float right
- </style>
- 1.
style 默认的 CSS
类似于 script 默认的 JavaScript 一样
- <script type="text/javascript">
- </script>
- <script>
- </script>
解决; 我们要修改默认语言
- <style lang="stylus" scoped type="text/stylus"> // 加一行即可
- article
- display flex
- background lightblue
- height 0.64rem
- .left
- float left
- .center
- flex 1
- background white
- .right
- float right
- </style>
总结
来源: http://www.bubuko.com/infodetail-3330169.html