如何使用 SASS 进行媒体查询? [英] How do you do a media query using SASS?
本文介绍了如何使用 SASS 进行媒体查询?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经通读了 SASS 文档,只能找到如何使用 scss 语法而不是 sass 语法进行媒体查询(sass 是一种没有大括号或分号的严格空格).您如何使用 sass 语法进行媒体查询?
I've read through the SASS documentation and can only find how to do a media query using scss syntax instead of sass syntax (sass is the one that has strict white space without curly braces or semicolon). How do you do a media query using sass syntax?
推荐答案
@media screen and (min-height: 500px)
body
margin-top: 100px
这篇关于如何使用 SASS 进行媒体查询?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文