super sass,super sass心智升级

首页 > 大全 > 作者:YD1662022-12-29 17:15:02

Sass 选择器函数

常用于检查和操作选择器。

下面是关于所有选择器函数的一个相关列表:

示例:

is-superselector("div", "div.myXkd") Result: true is-superselector("div.myXkd", "div") Result: false is-superselector("div", "div") Result: true

selector-append("div", ".myXkd") Result: div.myXkd selector-append(".content", "__a") Result: .content__a

selector-nest("ul", "li") Result: ul li selector-nest(".content", "alert", "div") Result: .content div, alert div

selector-parse("h3 .myXkd .content") Result: ('h3' '.myXkd' '.content')

selector-replace("p.content", "p", "div") Result: div.content

selector-unify("myXkd", ".disabled") Result: myXkd.disabled selector-unify("p", "h1") Result: null

simple-selectors("p.myXkd") Result: p, .myXkd simple-selectors("p.myXkd:after") Result: p, .myXkd, :after

栏目热文

文档排行

本站推荐

Copyright © 2018 - 2021 www.yd166.com., All Rights Reserved.