CSS selector:
1. Tag selector: set the same CSS format for all HTML tags.
2. Category selector: for example. class {color: green; font-size: 20px} class is the class name, color and font-size are the attributes, and green and 20px are the values
When you log on to the csdn homepage, you will find a small window in the lower-right corner, which contains some simple tips. No matter how you move the scroll bar, it is always in the lower-left corner. It is very convenient to use as a prompt or
The cellpadding and cellpadding of table are usually used to clear the default style as follows:
Table
Cellspacing
= "0"
Cellpadding
= "0"
>
Table
>
Many friends may say that the performance is in the structure and does not
I. Abbreviations
Margin (4 sides ):
1px 2px 3px 4px (top, right, bottom, left)
1px 2px 3px (Omitted left equals right)
1px 2px (Omitted top or bottom)
1px (the four sides are the same)
Simplify all:
*/Body {margin: 0} ------------ indicates that
Therefore, the image Path Problem in Css is summarized as follows:
1. Do not quote the path of the background imageChange background: url ("xxx.gif") to background: url(xxx.gif)Some browsers may encounter errors when quotation marks are added.
2.
From Baidu document: http://wenku.baidu.com/view/177b11d3240c844769eaee1a.html
Although I personally support the original tutorials in the blog Park, sometimes I would like to share with you some good articles. The following article describes the
Note:[Reprinted please indicate the source of the article and keep it as it is]
Source: http://www.cnblogs.com/jyli/archive/2010/01/31/1660364.html pleaseAuthor: Li Jiayi
The implementation of CSS in Webkit is a relatively independent module. Note
In CSS, overflow control can be implemented through text-overflow: Clip | ellipsis;
Clip is only used for simple cropping. ellipsis adds "..." while cropping. This method is better than the js method for intercepting characters (SEO for search
Code:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
my comrades, my comrades comrade, my comrade, my comrade
Example:
My comrades, my comrades, my comrades comrade me Comrade my
I. white-space
You can implement the pre-label effect in HTML and the nowrap Effect of cells. Click here to view the example.
Syntax:White-space: normal | pre | nowrap Valid value:Normal: default value. The default processing method. Text
In Firefox, you can use display: Table-cell; Vertical-align: middle; to vertically center Div, while in IE6, you need to use CSS in IE6 to vertically center. To implement vertical center compatible with Firefox and IE6, you also need to use it!
There are a lot of tips in CSS web page layout development, and new users are often unfamiliar with this. On one or two small issues, it may take a long time for us to understand the problem. Although this content has been mentioned many times in
I. html document styles can be divided into three forms based on different sources:
(1) external style. That is, the style of the document application comes from the external style sheet. After the style sheet is written, use "" to introduce it to
Background-position:| [Percentage | length] {1, 2}| [Top | center | bottom]| [Left | center | right] www.86oo.com
Background-position: [percentage | length] is defined by X (X) y (y), such as background-position: 20px 40px;
The text mainly shows the usage tips of CSS content and its related attributes:•: Before AND: after pseudo elements• Content Attributes• Combination of CSS quotes and content Attributes• Counters
For more information, see CSS content,
Nowadays, webpage Trojans are getting more and more rampant, especially for websites with low security awareness. They lack professional security technical talents. Trojan often occurs. Now let's take a look at how CSS can solve this problem. There
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service