我有 5 个 div,全部带有这种样式的 #content 类
#content, .ready, .contact
height: 100vh
但只有前三个显示正确。另外,我还在学习 Sass,所以不确定我是否只是犯了语法错误。
ID 在 HTML 中必须是唯一的。
=>替换#content
用.content
在你的SASS,并id="content"
与class="content"
您的HTML。
关于您的代码的额外反馈:
<p>...</p>
你的文本,而不是<h5>...</h5>
,它没有任何意义的语义。本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句