1. doctype affects CSS Processing
2. FF: When Div sets margin-left and margin-Right to auto, it is already centered, and IE does not work.
3. FF: when setting text-align for the body, set margin: auto (mainly margin-left, margin-Right) for the
How to Use css and javascript when using a master page)
Because the header and bottom of the main channel page and list page of the website are the same, if you place each page in a separate page, the maintenance volume is too large when the
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
I often encounter this problem when I start to learn about the layout of web pages. Now I can copy my articles online and paste them here! Hope to help.
When we often use Div + CSS to build a site, we find that IE6, IE7, and Firefox often show a
Original http://www.stubbornella.org/content/2012/05/02/cross-browser-debugging-css/
The author is a YAHOO front-end engineer.
The first thing to do is to select a good browser. My choice is Chrome, because it has powerful debugging tools. After
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
CSS box)
First of all, it should be clear that the box attribute is not in CSS. The CSS box consists of the following parts:
Content, padding, border, and margin ). The content of the box is mandatory, and the padding, border, and border are
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
Pseudo-anchor
In browsers that support CSS, different links can be displayed in different states, including activity, accessed, inaccessible, and hovering.
A: link {color: # ff0000}/* unaccessed link */A: visited {color: #00ff00}/* accessed link */A:
1. DIV and span markup: in simple terms, it is the markup of a block container. That is, ... is equivalent to a container that can contain html elements such as paragraphs, titles, tables, images, and even chapters, summaries, and remarks. The
CSS naming rules
Header: header
Content: content/containe
End: footer
Navigation: nav
Sidebar: sidebar
Column: column
Overall Layout width of the page peripheral control: wrapper
Left right center
Logon entry: loginbar
Logo: logo
Advertisement:
Hexadecimal color value pairs
The default hexadecimal color value is uppercase and six-digit. Lower rendering efficiency without taking risks in unknown situations.
Disapproval-color:#f3a;
Recommended-color:#FF33AA;
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
CSS () can pass the attribute name of a string for this method. For example, CSS ('backgroundcolor '). for attribute names composed of multiple words, JQ can be understood as CSS notation (for example, CSS ('background-color ')), it can also be
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!
With the emergence of xml (extensible Markup Language), structured documents and data have a common and adaptive format, which can be applied not only on the web, but also anywhere. The standard is called possible.
XHTML is The abbreviation of The
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