Відмінності між версіями «CSS селектори»

Матеріал з Вікі ЦДУ
Перейти до: навігація, пошук
Рядок 58: Рядок 58:
 
|-
 
|-
 
|E:first-child
 
|E:first-child
|an E element, first child of its parent
+
|елемент Е, перший син свого батька
 
|2
 
|2
 
|-
 
|-
Рядок 66: Рядок 66:
 
|-
 
|-
 
|E::before
 
|E::before
|generated content before an E element
+
|генерувати контент перед елементом Е
 
|2
 
|2
 
|-
 
|-
 
|E::after
 
|E::after
|generated content after an E element
+
|генерувати контент після елементу Е
 
|2
 
|2
 
|-
 
|-
Рядок 134: Рядок 134:
 
|-
 
|-
 
|E:empty
 
|E:empty
|an E element that has no children (including text nodes)
+
|елемент, який не має дітей (включаючі текстові вузли)
 
|3
 
|3
 
|-
 
|-
Рядок 142: Рядок 142:
 
|-
 
|-
 
|E:enabled E:disabled
 
|E:enabled E:disabled
|a user interface element E which is enabled or disabled
+
|елемент Е користувацького інтерфейсу, який ввікмнено, або вимкнено
 
|3
 
|3
 
|-
 
|-
Рядок 150: Рядок 150:
 
|-
 
|-
 
|E:not(s)
 
|E:not(s)
|an E element that does not match simple selector s
+
|елемент Е, який не відповідає простому селектору s
 
|3
 
|3
 
|-
 
|-
 
|E ~ F
 
|E ~ F
|an F element preceded by an E element
+
|елемент F, який передує елементу Е
 
|3
 
|3
 
|}
 
|}

Версія за 12:03, 21 вересня 2015

Pattern Значення First defined in level
E елемент типу Е 1
E:link E:visited an E element being the source anchor of a hyperlink of which the target is not yet visited (:link) or already visited (:visited) 1
E:active E:hover E:focus an E element during certain user actions 1
E::first-line відформатована строка елементу Е 1
E::first-letter the first formatted letter of an E element 1
E.warning an E element whose class is "warning" (the document language specifies how class is determined) 1
E#myid an E element with ID equal to "myid" 1
E F an F element descendant of an E element 1
* будь-який елемент 2
E[foo] елемент E з атрибутом "foo" 2
E[foo="bar"] an E element whose "foo" attribute value is exactly equal to "bar" 2
E[foo~="bar"] an E element whose "foo" attribute value is a list of whitespace-separated values, one of which is exactly equal to "bar" 2
E[foo|="en"] an E element whose "foo" attribute has a hyphen-separated list of values beginning (from the left) with "en" 2
E:first-child елемент Е, перший син свого батька 2
E:lang(fr) an element of type E in language "fr" (the document language specifies how language is determined) 2
E::before генерувати контент перед елементом Е 2
E::after генерувати контент після елементу Е 2
E > F an F element child of an E element 2
E + F an F element immediately preceded by an E element 2
E[foo^="bar"] an E element whose "foo" attribute value begins exactly with the string "bar" 3
E[foo$="bar"] an E element whose "foo" attribute value ends exactly with the string "bar" 3
E[foo*="bar"] an E element whose "foo" attribute value contains the substring "bar" 3
E:root an E element, root of the document 3
E:nth-child(n) an E element, the n-th child of its parent 3
E:nth-last-child(n) an E element, the n-th child of its parent, counting from the last one 3
E:nth-of-type(n) an E element, the n-th sibling of its type 3
E:nth-last-of-type(n) an E element, the n-th sibling of its type, counting from the last one 3
E:last-child an E element, last child of its parent 3
E:first-of-type an E element, first sibling of its type 3
E:last-of-type an E element, last sibling of its type 3
E:only-child an E element, only child of its parent 3
E:only-of-type an E element, only sibling of its type 3
E:empty елемент, який не має дітей (включаючі текстові вузли) 3
E:target an E element being the target of the referring URI 3
E:enabled E:disabled елемент Е користувацького інтерфейсу, який ввікмнено, або вимкнено 3
E:checked a user interface element E which is checked (for instance a radio-button or checkbox) 3
E:not(s) елемент Е, який не відповідає простому селектору s 3
E ~ F елемент F, який передує елементу Е 3

http://css.yoksel.ru/css-selectors-part2/#attr-contains