CSS (E + F) adjacent selector, css
This selector can match element F Following the Eelement.
Syntax structure:
E + F {Rules}
Browser support:
(1). IE browser supports this selector.
(2) edge browser supports this selector.
Learn the CSS selector this week.The most commonly used work is the element selector, the ID selector, the class selector, and the descendant selector.There are some less common but powerful selectors are easy to overlook, this study summarizes.1. Descendant
The selector is the tag that specifies the CSS to function, and the name of the tag is the selector. Select which container (the label itself is the container that encapsulates the data).
@CHARSET "UTF-8"; There are many kinds of selectors in/*css, the first is the most basic element
CSS is one of the most powerful tools available to Web designers. Using it we can change the interface of a website in a few minutes without changing the label of the page. But despite the fact that each of us realizes that it is useful, CSS selectors are far from their potential, and sometimes we tend to use too many and useless classes, IDs, Div, span, etc. to make our HTML messy.The best way to avoid hav
Article Introduction: 11 class with an ID "who has a high priority problem."
Last Friday, before work, our beloved 33 adults also discussed in the group about "11 classes and an ID" who has high priority problem ~_~!
Guess
01
02
03
04
05
10
11
12
13
CSS selector, cssCSS Selector[Wildcard character selection]* The asterisk selector matches every element on the page, but I suggest you never use it in code reproduction. It brings a lot of unnecessary burden to the browser. * {Margin: 0; padding: 0 ;}[Tag selector](Also cal
CSS-read Essay 2 (combination of selector and priority/weight), css essay
After knowing the most basic knowledge of CSS delimiters, we need to make full use of them. Here we will record several common usage cases.
1. targeted use of class selector or ID
What does this article bring to you about CSS selectors? CSS Selector Use summary, there is a certain reference value, the need for friends can refer to, I hope to help you.
1. Selector (device) using basic syntaxSelector {Attribute 1: Property value 1;Attribute 2: Attribute value 2;Attribute 3: Attribute value 3;.....
in red.Remember, do not compare the size of a simple weight as a 10 binary number.Exercises:
what color does the following code ultimately show, and what are the priority levels?
Extended reading:
KB005:CSS Cascade
WebKit and Firefox use a single int value type to replace the potential problem of CSS Selector ' s specificity segmented not
considered that chrome complies with the special (priority) Calculation Standard ):
Time stamp: 19:04:44 (20 months ago) Author: commit-queue@webkit.org message:
Selector special category overflows to high categoryHttps://bugs.webkit.org/show_bug.cgi? Id = 98295
Patch by Tab Atkins Reviewed by Eric Seidel.
The patch added this time adds an overflow policy for the special nature of the
kernel browser and operabrowser have the best support for CSS selectors. All Chrome versions support the CSS selector, and Safari3.2 and later support the CSS selector. Opera9.6 and later support the
CSS attributes and delimiters
The syntax structure of CSS consists of three parts: selector, property, and value ).Usage:Selector {property: value ;}
Selector)This set of style encoding objects can be An XHTML tag, such as body and H1, or a tag that defines a specific ID or class, for example, the # main
CSS Common Selector
*
A wildcard selector
Select the document so that the HTML element
E
Element Selector
Select an HTML element of the specified type
#id
ID Selector
Select any type element that spe
between the property selector and the child selector, the range of the child selector is reduced in form, the range of the property selector is larger, such as P[id], and all P tags have the same type of ID. Ten IE hide and seek problems When the div application is complex, there are some links in each column, and th
1 briefly describe how CSS style sheets are used.There are three ways to use CSS style sheets in HTML pages:1, inline style sheet: style rules in a single element, written in the element's style attribute;2. Internal style sheet: The style definition is in the header element of the HTML page;3. External style sheet: Defines the style in an external CSS file and t
condition, and "sibling" means the same parent element as E, and "brother" means after E;Only the element color of ID P3, P4, P6 becomes red;
* * Pseudo class selector ( common )When the pseudo-class selector syntax is written, it differs from other CSS selectors in the form of:E:pseudo-class{property:value;}where e is the HTML element, Pseudo-class is the
"#".In a Web page, each ID name can be used only once, and must not be duplicated.#selector { color:red;} . selector{ color:red;} 3. Pseudo-Class selectorsE:link:Sets the style of hyperlink a before it is accessed.a:link{ Color:black;} E:visited:Sets the style of hyperlink A in which the link address has been accessed out of date.a:visited{ Color:blue;} E:hover:Sets the style of the element whe
CSS attribute selector-4, css-4
1. the attribute selector is used to find elements through element attributes.
2. Attribute selector syntax
CSS3 follows the regular encoding rules. The use of wildcards improves the writing efficiency of the style sheet and makes the att
1.CSS Selector priority:!important > Inline style > ID >class and property selector > tag Selector > Wildcard selector Note: [Junior engineer Level]2. The reason why there is priority issues, in the final analysis, these selectors have the right to heavy, the greater the wei
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.