SASS:直接后代规则? [英] SASS: Direct Descendent rule?

查看:283
本文介绍了SASS:直接后代规则?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在SASS中表示直接的后代CSS规则?

How do I represent a direct descendent CSS rule in SASS?

Ex。

body > div { ... }

在文档中似乎找不到它: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html

Couldn't seem to find it in the docs: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html

推荐答案

您应该只能

body
  >div
    property:value

您可能必须使用反斜杠 \ 转义>

You may have to escape the > with a backslash \.

这篇关于SASS:直接后代规则?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆