1. Pseudo-class selectors begin with a colon.: Focus area plus style: First-child adds a style to the first child element of an elementAnchor pseudo-Class:a:link {color:red} not visited linka:visited {Color:yellow} visited linka:hover {Color:green}
First look at the effectdocument This is a plain text This is a strong text This is a bold text b This is an em text This is an italic text i The official of the web is such an explanation of HTML tagsThe tag
See this title everyone will think of this Browsers "How to Work", this article on the browser a lot of details are very detailed, but also translated into Chinese. Why do I want to write an article? For two reasons,1) This article is too long, the
Sun Tzu's Art of war has the cloud "the enemy Baizhanbudai", which we are very clear, but in the competition of SEO how to use limited resources to know the enemy is a worthy of our consideration. Today I would like to share how to use Baidu
Frame: Frameset: Box set. If you use a frameset, the current page cannot use body. Cols= "300,*", left and right split, 300, and the rest of the end. Frameborder borderFRAME:SRC (frame to display the address of the page), scrolling (scroll
Using margin or padding the problem is the only way to learn the CSS step.The CSS margin property defines the space around the element. By using a separate property, you can set the top, right, bottom, and left margins. You can also use the
Using margin or padding the problem is the only way to learn the CSS step.The CSS margin property defines the space around the element. By using a separate property, you can set the top, right, bottom, and left margins. You can also use the
Questions about CSS compatibility
The last time I mentioned in the forum what should I pay attention to in CSS for various browsers, I was depressed. Later, no one sorted out the information and I checked the information myself! I want to help you:
In CSS, tag elements in HTML are broadly divided into three different types: block elements , inline elements (also called inline elements), and inline block elements .
The most common block elements are:, , ..., , , , , , , The commonly used
When you see this title, you will surely think of this Article "How browsers work". This article details many browser details and translates them into Chinese. Why do I want to write another article? For two reasons,
1) This article is too long and
XSL-FO Study Notes (1)
Being able to generate PDF files is always mysterious to me. I used previously to generate a PDF file. 1) Open the relevant file with the corresponding software and print it to a file, such as Ali. PRN, and then manually set
XSL-FO Study Notes (1)
Being able to generate PDF files is always mysterious to me. I used previously to generate a PDF file. 1) Open the relevant file with the corresponding software and print it to a file, such as Ali. PRN, and then manually set
CSS syntax
CSS syntax consists of three parts: selector, attribute, and value:
selector {property: value}
Body {color: blue}
1. derived Selector
You can define a style based on the context of the element in its position to make the tag more concise.
The CSS selector can accurately find the specified tag. Using the CSS selector allows us to easily define CSS styles for the tag, rather than defining CSS styles for each tag.
The following describes the five most common CSS selectors:
I. Tag
We will all know about CSS Reset. Sometimes a simple * {margin: 0 padding: 0} can be done. You cannot generalize either of them. I didn't know which one I used before, but the font was a bit abnormal. Later I changed the Reset of YUI. Everything is
========================================================== ========The author of this article is: Trenton Moss.The website is: http://www.webcredible.co.uk.========================================================== ========1. Simplified CSS font
Note is divided into two parts: Today is the CSS selector, and later there is a part of the XPath selector. Today's note contains 44 selectors, basically covering all the rules of CSS 2 and CSS 3.
==================================
CSS selector
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.