Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
· All units must be explicitly specified, such as body {margin: 0px ;}
· When specifying the width and height, you need to subtract the padding from the actual width and height. For example,
Cnblogs provides many blog interface templates that I personally don't like very much, so I just set up CSS on my blog homepage. If a friend thinks that my blog interface is good, you can use my style. Before using a custom style, you need to make
Webcredible lists a lot of syntactic tips on CSS usage, which is more practical. In the past, many things only know how to write them, but seldom consider why. It seems that CSS can do much more than you know.
1. Simplified CSS font definition
Updating ......
1. Some CSS styles are feasible in some webpages and cannot be implemented in some webpages.HtmlCode tag remove it.
2. There is a blue border problem when the image is hyperlinkFor example Solution: add the border = "0"
It has always been a headache for me, that is, the problem of image scaling.CodeWriting to JS is not easy to modify. Writing to CSS does not support max-width in IE 6. It took a long time today to finally solve this problem. It is basically perfect.
Jquery CSS Functions
CSS attributes
Description
vertex (selector).css (name, value)
set the style attribute value for the Matching Element
vertex (selector).css ({properties })
set
Common CSS styles
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->A custom CSS class can be referenced on HTML tags.
Solid line: solid dotted line: dashed custom CSS class: ummad
. Ummad {
Border: 1
1. Functions of CSS
Separate documents from formats; better control of web page layout; smaller web page size
CSS uses the rule control page. The rule is divided into two parts: Selection and description. You can select any HTML Tag. The description
Detailed source reference: http://www.jb51.net/css/15987.html
During the tab switch today, we encountered a problem. IE8, IE7, and Firefox did not parse the PX height in a uniform way. We plan to start! Important solved the problem and later found
Javascript dynamic calling of CSS style sheets (1)
Previously, I often met words such as classname and csstext, but I don't know how to use them. There are four methods to call a style sheet on a webpage.The first is the external chain, that is, the
1. Tag Selector
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->a{display:none;}tr{font-size:10px;}
2. ID Selector
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.
Today, I encountered a very funny problem. When converting the static page designed by the artist to An ASPX page, the design page is displayed normally, but the format is incorrect during preview. Although this is a very simple problem, if you have
Your web site always contains several modules which navigated by a menu or something, just like this: forums | blog | photos. you may want each module has its own color style, so the users can recognize each module easily and your site also be cool.
Most people can easily confuse the display and visibility attributes of CSS. They seem to have no difference, but they actually have a big difference.
Visibility
Attribute is used to determine whether the elements are displayed or hidden. Visibility
1. Simplified CSS font attributes
In general, CSS is used to set the font attributes as follows:font-weight: bold;font-style: italic;font-varient: small-caps;font-size: 1em;line-height: 1.5em;font-family: verdana,sans-serifBut you can also write
IE vs FF
Key Points of CSS compatibility:
Doctype affects CSS Processing
FF: When Div sets margin-left and margin-Right to auto, it is already centered, and IE is not working.
FF: When you set text-align for the body, you must set margin: auto
1. Organization issues
Problem: the IE value of any distance can be left with no unit. The FF value must be written in units (except 0)
Solution: Write All units such as padding: 0px;
2. horizontal centerProblem: For content in Div, ie is center by
☆Background-color)This attribute sets the background color for the HTML element, which is equivalent to the bgcolor attribute in HTML.Body {background-color: #99ff00 ;}The above Code indicates that the background color of the HTML element "body" is
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