本文介紹了CSS“選擇器"之間的那個東西是什么?叫?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
你怎么稱呼這些:
What do you call these:
body > p + p
在 CSS 選擇器中?他們是:
in a CSS selector? Are they:
- 關系運算符
- 基于職位的標準
- 還有什么?
我只是不知道該怎么稱呼他們.有正式名稱嗎?
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
?)
推薦答案
根據https://www.w3.org/TR/selectors-3/#combinators 它們被稱為組合器".
According to https://www.w3.org/TR/selectors-3/#combinators they are called "combinators".
>
(尖括號或大于號)= 子組合子+
(加號)= 相鄰兄弟組合子~
(波浪號) = 通用兄弟組合子
>
(angle bracket or greater-than sign) = child combinator+
(plus mark) = adjacent sibling combinator~
(tilde) = general sibling combinator
這篇關于CSS“選擇器"之間的那個東西是什么?叫?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!