男河南快三走势图—官方网址22270.COM鈥擲ass 閫夋嫨鍣ㄥ嚱鏁

Sass 鍑芥暟 Sass 鍑芥暟

男河南快三走势图—官方网址22270.COM鈥擲ass 閫夋嫨鍣ㄥ嚱鏁扮敤浜庢煡鐪嬩笌澶勭悊閫夋嫨鍣ㄣ

涓嬭〃鍒楀嚭浜 Sass 鐨 閫夋嫨鍣ㄥ嚱鏁帮細

鍑芥暟 鎻忚堪 & 瀹炰緥
is-superselector(super, sub) 姣旇緝涓や釜閫夋嫨鍣ㄥ尮閰嶇殑鑼冨洿锛屽嵆鍒ゆ柇 super 閫夋嫨鍣ㄦ槸鍚﹀寘鍚簡 sub男河南快三走势图—官方网址22270.COM閫夋嫨鍣ㄦ墍鍖归厤鐨勮寖鍥达紝鏄殑璇濊繑鍥 true锛屽惁鍒欒繑鍥 false銆

瀹炰緥:
is-superselector("div", "div.myInput")
缁撴灉: true
is-superselector("div.myInput", "div")
缁撴灉: false
is-superselector("div", "div")
缁撴灉: true
selector-append(selectors) 灏嗙浜屼釜 (涔熷彲浠ユ湁澶氫釜) 娣诲姞鍒扮涓涓夋嫨鍣ㄧ殑鍚庨潰銆 selector.

瀹炰緥:
selector-append("div", ".myInput")
缁撴灉: div.myInput
selector-append(".warning", "__a")
缁撴灉: .warning__a
selector-extend(selector, extendee, extender)  
selector-nest(selectors) 杩斿洖涓涓柊鐨勯夋嫨鍣紝璇ラ夋嫨鍣ㄩ氳繃鎻愪緵鐨勫垪琛ㄩ夋嫨鍣ㄧ敓鎴愪竴涓祵濂楃殑鍒楄〃銆

瀹炰緥:
selector-nest("ul", "li")
缁撴灉: ul li
selector-nest(".warning", "alert", "div")
缁撴灉: .warning div, alert div
selector-parse(selector) 灏嗗瓧绗︿覆鐨勯夋嫨绗 selector 杞崲鎴愰夋嫨鍣ㄩ槦鍒椼

瀹炰緥:
selector-parse("h1 .myInput .warning")
缁撴灉: ('h1' '.myInput' '.warning')
selector-replace(selector, original, replacement) 缁欏畾涓涓夋嫨鍣紝鐢╮eplacement 鏇挎崲 original 鍚庤繑鍥炰竴涓柊鐨勯夋嫨鍣ㄩ槦鍒椼

瀹炰緥:
selector-replace("p.warning", "p", "div")
缁撴灉: div.warning
selector-unify(selector1, selector2) 灏嗕袱缁勯夋嫨鍣ㄥ悎鎴愪竴涓鍚堥夋嫨鍣ㄣ傚涓や釜閫夋嫨鍣ㄦ棤娉曞悎鎴愶紝鍒欒繑鍥 null 鍊笺

瀹炰緥:
selector-unify("myInput", ".disabled")
缁撴灉: myInput.disabled
selector-unify("p", "h1")
缁撴灉: null
simple-selectors(selectors) 男河南快三走势图—官方网址22270.COM灏嗗悎鎴愰夋嫨鍣ㄦ媶涓哄崟涓夋嫨鍣ㄣ

瀹炰緥:
simple-selectors("div.myInput")
缁撴灉: div, .myInput
simple-selectors("div.myInput:before")
缁撴灉: div, .myInput, :before

Sass 鍑芥暟 Sass 鍑芥暟