Copyleft of this document belongs to Rosetta and can be freely copied and reproduced when published using GPL. ensure the integrity of the document during reprinting.
References: Linux kernel full analysis, new assembly language programming, and Linux C Programming one-stop learning
Recently, a key part of the C language algorithm needs to be implemented in assembly language. In Linux, att assembly is basically used for Embedded Assembly. For example
the document. Often referred to as HTML elementsE:empty matches elements that do not have any child elements (including text nodes) EE:enabled matches elements that are in the available state on the user interface EE:disabled matches an element in the disabled state on the user interface EE:target matches the element that the related URL points to EProperty SelectorE[att] Select the e element with the ATT
1. Property selector:a). E[att]: Select all e elements that have the ATT attribute.b). E[att= ' Val ']: Select all elements that have the ATT attribute and the property value is Val E.c). E[att~= ' val ': Select an e element that has the
Today's course accelerated, faster than usual, but felt very good. nice~Property SelectorE[att] Select the e element that has the ATT attribute.Input[type]{color: #red;}E[att= "Val"] Select the e element that has the ATT attribute and the attribute value equals Val.Input[type= "Radio"]{color: #red;}E[
1. Property SelectorE[att]: Select the e element with the ATT attribute.1 / * Get the P element with the class attribute * / 2 p[class]{3 color:red; 4 }56class= "a">class: Ap>E[att= "Val"]: Select the e element that has the ATT attribute and the attribute value equals Val.1 / * Get the P element with the value "a" f
: #f00;}
p + P {color: #f00;}
Third, CSS 2.1 property Selector
Serial number
Selector Selector
Meaning
9.
E[att]
Matches all e elements that have the ATT attribute, regardless of its value. (Note: E can be omitted here, such as "[cheacked]". to the same. )
10.
E[att=val]
Matches
) selectors (CSS2): E>f{}:ef can not be generational, E can only match to the next neighboring generation F.Two-Attribute Selector1. E[att^= "Val"]: Select the e element with the ATT attribute and the property value as a string starting with Val.2. E[att$= "Val"]: Select the e element that has the ATT attribute and the
; F
child element Selector, matching all e element's child elements F
div > Strong {color: #f00;}
E + F
Adjacent element selector, matching all sibling elements immediately following the E element f
p + P {color: #f00;}
3.CSS 2.1 Property Selector
Selector Selector
Meaning
Example
E[att]
Matches all e elements that have the ATT
First, the basic selector1. * Universal Element Selector, matches any element2. E tag Selector, matching all elements using e tag3.. info class selector that matches all elements of the class attribute that contain info4. #footer the ID selector to match all elements of the id attribute equal to footerTwo, multi-element combination Selector5. E,f Multi-element selector, matching all e elements or F elements, separated by commas between E and F6. E F descendant element selector, matching all f el
are descendants of the e element, separated by a space between E and F
7.
E > F
child element Selector, matching all e element's child elements F
8.
E + F
Adjacent element selector, matching all sibling elements immediately following the E element f
Instance:
div p {color: #f00;}
#nav li {display:inline;}
#nav a {font-weight:bold;}
div > Strong {color: #f00;}
p + P {color: #f00;}
Third, CSS 2.1 property S
When learning Css3.0 selector, refer to "CSS3.0 reference manual". There is a place not to explain, so was the pit for half an hour Ah!Here to share with you, in the selector category there, there is a category is the property selector is a string to match!The form has the following types:
Property name SelectorE[att]--matches the E element with the ATT attribute in the documentProperty value Selector
Enrollment: icloneable{Public list Public void showenrollmentinfo (){Console. writeline ("the following lists all registered students :");Foreach (student item in students){Console. writeline ("{0}'s age is {1}", item. Name, item. Age );}Console. Read ();}# Region icloneable MemberPublic object clone (){Return base. memberwiseclone (); // shortest copy}# Endregion}
The value of the source object will be changed when the copy object is changed during
.
Binary Attribute Selector
1. E [att ^ = "val"]: select an Eelement of a string with the att attribute and the attribute value starting with val.
2. E [att $ = "val"]: select an Eelement with the att attribute and the attribute value is a string ending with val.
3. E [att *
9.
E [att]
Matches all the eElements with the att attribute, regardless of its value. (Note: E can be omitted here, for example, "[cheacked]". .)
10.
E [att = val]
Matches all the eElements whose att attribute is equal to "val ".
11.
E [at
Recently, a key part of the C language algorithm needs to be implemented in assembly language. In Linux, ATT assembly is basically used for Embedded Assembly. For example, ATT assembly is used for Linux system startup. I have studied ATT assembly before, but I have forgotten it after a while, but I am familiar with Intel assembly basics. The two are basically sim
simultaneously. Separate E and F with commas (,).
6.
E F
The descendant element selector matches all f elements belonging to the descendant of the Eelement. E and F are separated by spaces.
7.
E> F
Child element selector, matching the child element F of all eElements
8.
E + F
Adjacent to the element selector, matching all elements of the same level F that follow the Eelement
Instance:
Div P {color: # f00 ;}
# Nav Li {display: inline ;}
# Na
element, such as p: first-of-type, is the first of all the child elements of the p type. It is no longer the first child element, as long as it is the first element of this type. Attention: of course, these elements belong to the same level, that is, their peers. The same type of selector: last-child and: last-of-type,: nth-child (n) and: nth-of-type (n) can also be understood in this way.
[Attribute selector]Version description
E [att]CSS2 select an
Element Selector
E (an Element)
ID (using #id)
. class (using. Class)
Wildcard characters *
Relationship Selector
Contains E F (e First all F contains descendants, grandchildren, etc.)
Sub-selector e
Adjacent selector E+f (and e adjacent F, one not counted)
Sibling selector E~f (and e-sibling F)
Property Selector
E[att] (an element with an att att
: #ff0;}
p.info.error {color: #900; font-weight:bold;}
#info {background: #ff0;}
P#info {background: #ff0;}
Combination selector with multiple elements
Serial number
Selector
Meaning
5.
E,f
Multi-element Selector, matching all E or F elements, separated by commas between E and F
6.
E F
Descendant element selector that matches all f elements that are descendants of the e element, separated by a space between E and F
Open the iphone's "settings-general-about this machine-model", you can see the model, serial number, WiFi address, Bluetooth related digital display, this information represents a number of important related to the origin of information. Take "md299zp/a" as an example, here the "zp/a" means "Port version", the query to the iphone official inquiries.
Second Step
2. Version Identification method
For IPhone5 please look here:
First, the United States IPhone5
1,
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.