本文介紹了CSS“選擇器"之間的那個(gè)東西是什么?叫?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
你怎么稱呼這些:
What do you call these:
body > p + p
在 CSS 選擇器中?他們是:
in a CSS selector? Are they:
- 關(guān)系運(yùn)算符
- 基于職位的標(biāo)準(zhǔn)
- 還有什么?
我只是不知道該怎么稱呼他們.有正式名稱嗎?
I just have no idea what to call them. Is there an official name?
(另外,abc、def
和abc
中有abc
的正式名稱嗎??)
(And, also, are there official names for a b c
in a b c, d e f
and a
in a b c
?)
推薦答案
根據(jù)https://www.w3.org/TR/selectors-3/#combinators 它們被稱為組合器".
According to https://www.w3.org/TR/selectors-3/#combinators they are called "combinators".
>
(尖括號(hào)或大于號(hào))= 子組合子+
(加號(hào))= 相鄰兄弟組合子~
(波浪號(hào)) = 通用兄弟組合子
>
(angle bracket or greater-than sign) = child combinator+
(plus mark) = adjacent sibling combinator~
(tilde) = general sibling combinator
這篇關(guān)于CSS“選擇器"之間的那個(gè)東西是什么?叫?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!