我正在渲染一个简单的sass文件并收到以下警告:
This selector doesn't have any properties and won't be rendered.
╷
14 │ position:fixed
│ ^^^^^^^^^^^^^^
╵
WARNING on line 17, column 9 of test.sass:
This selector doesn't have any properties and won't be rendered.
╷
17 │ display:inline-block
│ ^^^^^^^^^^^^^^^^^^^^
╵
这是文件:
html, body
width:100%
min-height:100vh
margin:0
padding:0
.header
background-color:#ffffffb2
border-bottom:#0000004c
box-shadow:0 0 20px #0000004c
top:0px
left:0px
right:0px
height:70px
position:fixed
a
font-size:1rem
display:inline-block
padding:2rem 3rem
color:#0000004c
我真的需要在输出CSS中呈现这些位置和显示样式,而且我看不出sass抱怨它们的任何原因。有人在我的代码中看到问题吗?