这个符号在CSS中是什么意思? [英] What does this symbol mean in CSS?
问题描述
这是什么?
这是一个关于CSS中的语法的问题的集合。
为什么是这样?
Stack Overflow不允许搜索特定字符。因此,在搜索它们时,很难找到关于操作符和其他语法标记的许多问题。这也使得关闭副本更困难。下面的列表是帮助这个问题。
主要想法是链接到Stack Overflow上的现有问题,所以我们更容易引用它们,而不是请复制各种CSS规格的内容。
此外,这是一个公开的副本 JavaScript 符号引用。我们需要一个CSS。
请帮助。编辑并添加指向其他运算符/语法参考的链接,或者如果您无法在特定语法上找到好的问题/答案,请添加此问题的答案并将其链接。
通用选择器 *
组合器
- 儿童
>
:什么是> (大于号)CSS选择器是什么意思? - 关注同伴
〜
:〜 (波浪号/波形/旋转)CSS选择符是什么意思? - 下一个同级
+
:什么是+ (加号)CSS选择器? -
〜
vs+
: CSS +选择器和〜选择器之间的区别
伪类别
-
:focus
,:active
:有什么区别between:focus and:active? -
:root
: CSS3的:root伪类和html之间有什么区别?
属性选择器
-
[att | = val]
,[att ^ = val]
: pipe(| )和caret(^)属性选择器?
命名空间
阴影DOM
-
/ deep /
组合器,:: shadow
伪元素: do / deep / and :: shadow means in a CSS selector?
重要声明
-
!important
:使用!important的含义是什么?在CSS中?
Hacks
What is this?
This is a collection of questions that come up every now and then about syntax in CSS. This is also a Community Wiki, so everyone is invited to participate in maintaining this list.
Why is this?
Stack Overflow does not allow searching for particular characters. As a consequence, many questions about operators and other syntax tokens are not found easily when searching for them. This also makes closing duplicates more difficult. The list below is to help with this issue.
The main idea is to have links to existing questions on Stack Overflow, so it's easier for us to reference them, not to copy over content from the various CSS Specifications.
Additionally, this is a blatant copy of the JavaScript symbol reference. We needed a CSS one.
Please help. Edit and add links to other operators/syntax references, or if you can't find good questions/answers on a particular piece of syntax, add an answer to this question and link it
Universal selector *
Combinators
- Child
>
: What does the ">" (greater-than sign) CSS selector mean? - Following-sibling
~
: What does the "~" (tilde/squiggle/twiddle) CSS selector mean? - Next-sibling
+
: What does the "+" (plus sign) CSS selector mean? ~
vs+
: Difference between CSS + selector and ~ selector
Pseudo-classes
:focus
,:active
: What is the difference between :focus and :active?:root
: What's the difference between CSS3's :root pseudo class and html?
Attribute selectors
[att|=val]
,[att^=val]
: What is the difference between pipe (|) and caret (^) attribute selectors?
Namespaces
- Namespace separator
|
: What does *|* this mean in CSS? @namespace
rule: What is the use of @namespace in CSS?
Shadow DOM
/deep/
combinator,::shadow
pseudo-element: What do /deep/ and ::shadow mean in a CSS selector?
Important declarations
Hacks
这篇关于这个符号在CSS中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!