css| Specification | Web page
Web developers (that is, you) can identify the div and other page elements and tags by creating CSS classes and ID names and using those names. For developers, when naming CSS selectors for redefining XHTML tags (tags), you must ensure that they match exactly the predefined tags, but in terms of
The difference between the two is really an old question. But to this day, because of various network misinformation and some irresponsible books mistakenly, there are still quite a lot of people confuse pseudo-class with pseudo-elements, even many CSS veteran. Early in the beginning of the entry, I myself was deeply misled, because the forum most of the posts do not care about the nuances of this concept,
Just contact Pseudo-class and pseudo-elements, seniors recommend to read this article, at that time read several times did not read, still feel this article obscure difficult to understand, now re-read, feel really a good article, now share to everyoneTo the blog from the Sunflower Sword @ Sword EmptyThe text is as followsThe difference between the two is really an old question. But to this day, because of various network misinformation and some irres
The difference between the two is really an old question. But to this day, because of various network misinformation and some irresponsible books mistakenly, there are still quite a lot of people confuse pseudo-class with pseudo-elements, even many CSS veteran. Early in the beginning of the entry, I myself was deeply misled, because the forum most of the posts do not care about the nuances of this concept,
Article Introduction: the class name intersection compound selector using CSS.
First look at the basic definition:
A composite selector is a selector of two or more basic selectors that are connected in different ways, mainly including the intersection selector, the and set selector, and the descendant selector.
Intersection Selector
The intersection compound selector is composed of two sele
The difference between the two is really an old question. But to this day, because of various network misinformation and some irresponsible books mistakenly, there are still quite a lot of people confuse pseudo-class with pseudo-elements, even many CSS veteran. Early in the beginning of the entry, I myself was deeply misled, because the forum most of the posts do not care about the nuances of this concept,
Common naming conventions for CSS class, ID, and CSS file names(i) Common CSS naming conventionsHead: HeaderContent: Content/containerTail: FooterNavigation: NavSidebar: SidebarColumn: ColumnPage perimeter control overall layout width: WrapperMiddle: Left Right centerLogin Strip: LoginbarLogo: LogoAd: BannerPage body:
In css, the class selector adds a dot before the class name. If a class is not followed by multiple dots. important. urgent. Next I will introduce the usage of CSS class selectors and multi-cl
CSS pseudo-element, pseudo-class selector, and css pseudo-element Selector
A pseudo-class selector is a defined selector in CSS. It cannot be named by anyone. Common taste buds selector is used on Element a, such as a: link a: visited: hover a: active
The pseudo element sele
[Conversion] CSS target pseudo Class E: target, cssCSS3 target pseudo class has to talk about those things (only CSS achieves tab switching)
Do you think target is a little familiar ?!
What I want to talk about todayNoThe
The target pseudo class is a new property of css3.
W
1 Pseudo-class effect : CSS pseudo-class is a special effect used to add some selectors.2 Common examples:2.1anchor Pseudo-class: code:Normal syntax: a{color: #FF0000 ;} /* text color */ Pseudo-Class syntax:A: Link {color:#FF0000;} / * non-visited links * /
When using the mouse to move out of the event, there are generally two ways, one is the DOM event "onmouseover" and "onmouseout", there is a CSS pseudo-class ": hover".How to choose in practice depends on the clear understanding of the difference between them.
The HTML DOM allows JavaScript to respond to HTML events.When we bind an event to an element, a piece of JavaScript code can be executed when t
Use the css class name intersection compound selector "Turn", css "Turn"
A compound selector is a set of two or more basic selectors that are connected in different ways, including the intersection selector, Union selector, and descendant selector.
Intersection Selector
The intersection compound selector is composed of two selectors connected directly. The resu
Please note that some CSS pseudo class properties are not supported by all browsers, but there are four pseudo classes that can be safely used on links Pseudo class like the latch that specifies the selector State or association selector. They are in the form of: SELECTOR:PSEUDONBSP;CLASSNBSP;{NBSP;PROPERTY:NBSP;VALUE;NBSP, which uses a colon between the selecto
CSS pseudo-class before and after applications, css pseudo-beforeafter
I have seen some articles and examples about pseudo classes recently, but I am not very impressed. I have made some achievements in my project today.
There is a horizontal line in the text twice.
1. Partial page layout
Div-> span-> Chinese characters (small apartment)
2. The
Csspseudo-classesareusedtoaddspecialeffectstosome selectors. A CSS pseudo class can be used to add special effects to some selectors. Hyperlink How to add a different color to a hyperlink in a document thisexampledemonstrateshowtoadd Differentcolorstoahyperlinkinadocument. examples instance:
The code is as follows
Copy Code
Source Code to Run []a:link {color: #FF0000}a:vis
Http://www.8go8.com/blog/post/20060612013036.html)
These two differences are confusing, especially the class and ID. I believe many people have not carefully understood the differences. Some of my understandings are as follows:1. Differences between class and IDA class is used to define one or more elements according to user-defined standards. For example, a scr
Basic CSS knowledge (color, pseudo class, Box Model), css
6, Set the color unit
L normal English word {color: attribute value red ;}
This method is simple and convenient. However, different colors may be displayed in different browsers.
* Primary colors-red, green, and blue
L octal color
Format: rgb (number,Number,Number), The number range is 0 ~ 255 r Red g gree
The reason why the parent class clears the floating (clear the floating code and place it in CSS for easy calling), floating css
Floating factors are often applied in the production of static Web pages. For example, to make block-level elements not exclusive to a row, float is often applied. However, the application will find that, after the subclass floating is
A Pseudo class (pseudoclasses) is a bolt of a selector that specifies the state of a selector that is or is related to it. They are in the form of selector:pseudoclass{property:value;, simply separating the selectors and pseudo classes with a half-width English colon (:). Many of the suggestions for CSS are not supported by browsers, but there are four of them that can be used securely on connections. li
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.