Newly written tree:
1. solved the problem of slow loading in large quantities.
2. Improved application interfaces and enhanced scalability
Let's take a look at the results first, and then write the relevant parameter documentation later :)
In this way, new problems exist. Currently, normal web pages in IE7 may encounter problems in IE8.
Microsoft provides three page resolution modes in IE8
IE8 standard modes: the default most standard mode, which strictly complies with W3C rules
IE7
Different rules can be used to define the link styles in different content blocks. Similar to this: # nav A: link or # Main A: link or # footer A: link. You can also define different styles for the same element in different content blocks. For
Because "{" and "}" conflict with "{" and "}" in CSS.
It seems that no quotation marks are available.
In this way, writing scripts in CSS is not flexible, but what should I do if I want to write a complicated script into CSS? It is a problem.
There are four common ways to associate HTML documents with CSS:
Mark with Link
Use style element
Use the @ import command
Inline Style)
This Is a red word In practical applications, inline styles using the style attribute are not
The function has two parameters:
OBJ: the parent container of the IMG label group. Its type is DOM object;
Oevent: event object.
The advantage of this function is that HTML
Code It can be very concise, and there can be very few images. You only
IE Method:
the content in the tag is centered.
Non-ie method:
the left and right margins of the tag are automatically adjusted to achieve the center effect.
The standard recommended CSS method is the latter, and the set of IE is
The easy-to-create site navigation bar isCSSA field that truly shows its unique capabilities. The old method of creating a navigation bar tends to rely on a large number of images, nested tables, and JavaScript scripts-all of which seriously affect
There are two difficulties:
Vertical center;An image is a replacement element and has some special features.As for how to solve the problem, the following is a simple solution to weigh the relatively clean structure of CSS:
. Box {/* Vertical
1. Break down your style
For small projectsCodePreviously, the code was divided into several parts by PAGE structure or page content and annotated. For example, you can separate global styles, la S, font styles, forms, comments, and others
Step 1: Define an ID in the element connecting to the style sheet, for example
CopyCode The Code is as follows: ,
The id I define is CSS.
Step 2: Write a JS function with the following code:
Copy code The Code is as follows:
The code of this
CSS shows the excess part as a ellipsis. This method is compatible with Firefox _ script house _ www.jb51.net.
technical space of suntear
technical space of suntear
technical space of suntear
technical space of suntear
I used a symbol instead, but found that the display was relatively small. Later I did my research and found that all my fonts were defined as tahoma. As long as I used "", it would be normal.
· script home · script home ·
1. hexadecimal color value pairs of digits and case
When writing hexadecimal color values, you may use lower-case letters or omit them into three digits. No data is found to prove whether this method affects the rendering efficiency of the
For example:
some content
Preview this
Code The parent element float container of the outermost layer is not displayed. This is because the child element is floating and is out of the Document Stream, resulting in the parent element's height
I. In-line
In-row styles use the style attribute directly in HTML tags.
text Set the paragraph text to red.However, remember that the final HTML should be independent and use the presentation document, so the intra-row style should be avoided
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