gpt4 book ai didi

node.js - 这个选择器没有任何属性,不会被渲染(无缘无故)

转载 作者:行者123 更新时间:2023-12-01 21:50:36 33 4
gpt4 key购买 nike

我正在渲染一个简单的 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 会提示它们的任何原因。有人看到我的代码有问题吗?

最佳答案

: 后需要一个空格,检查 DEMO

关于node.js - 这个选择器没有任何属性,不会被渲染(无缘无故),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59513025/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com