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
Using Jquery to operate HTML elements is very convenient and flexible to search. In fact, CSS can also be used for searching and filtering flexibly and conveniently. Some of the following are some of the useful operations, which will be added later. Syntax description:
E -- Element
Att -- attribute
Val -- Attribute Value
E: first-child
E: last-child
Matching the Eelement with the att attribute i
Looking at the "Programmer's ego" Recently, I saw the GCC inline assembly, the static link chapter of the sample program is more interesting, so ready to learn the att syntax of the GCC inline assembly. I used to learn the computer principles of the Assembly, now basically returned to the teacher, or review it.
First of all, let's introduce the difference between the att syntax and the Intel ASM syntax (and
GCC Embedded assembly language Author: Xiaowenpeng Linjiang: Yang Xiaohua The vast majority of Linux programmers have only previously contacted the assembly language of Dos/windows, and these assembly codes are Intel-style. But in Unix and Linux systems, more or att format, the two in the syntax format is very different.
Introduction to compiling basic grammarIn the ATAMP;T assembly format, the register name is prefixed with '% ', whereas in the Intel
Original http://blog.csdn.net/bigloomy/article/details/6581754
Att assembly and 8086 assembly language, although the two are very similar, but still cannot read att Assembly according to the 8086 syntax rules, so we still need to look at the syntax rules of att assembly, when reading the kernel code, some of the Code that deals with hardware is compiled by
.
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
1. In intel format, most of them use upper-case letters (both in lower case) and lower-case letters in att format.
2. In att format, Register names must be prefixed with "%", which is not required in intel.
3. The original operation of the command is different from that of the destination operand. For example, if the eax value is passed into the EBX command, in Intel, the target is in the front, and the
the file content. After decryption, the original file will be overwritten./// /// Public static void decryptfile (string sourcefile){Decryptfile (sourcefile, sourcefile );}
# Endregion
Read/write encrypted XML or TXT
# Region read and operate the Assembly (XML file)Public static void savexml (string connenctionstring, string strkey) // write dynamic database configuration information{Commonclass. decryptfile (filepath );Xmldocument Doc = new xmldocument ();// Obtain the full path of the
----------------------------------------CSS Selector----------------------------------------1, combination selector:1) e>f: direct descendant selector.2) E+f: Sibling element selector, matching the sibling element F immediately following the E element.3) E~f: matches any of the sibling F elements after the E element.4) E F: descendant selector.5) E,f: Group selector.cation:+ and ~ differences, + can only match one sibling element immediately following it; ~ matches all sibling elements immediate
The number of attacks equals to the total number of attacks minus the number of successful defenses
This question is mainly used to calculate the number of successful defenses.
Add an auxiliary array pos [] to record the number of attacks at a certain point after the last query (the first attack can be defended)
Every defensive hold once, the t0-1 attack, continue to judge the next t0 attack has included (that is, the attack to) Ask the point
Some people say that the complexity is O (n ^ 2). The
included. The impact of code size is unpredictable, depending on the specific situation. To declare an inline function, we must use the "inline" keyword in the function declaration.Now we are at a point where we guess exactly what inline assembly is. It is just an assembly program written as an inline function. They are convenient, fast, and extremely useful in system programming. We mainly focus on the basic formats and usage of (GCC) inline assembler functions. To declare inline assembler fun
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.