You can define the link styles in different content blocks by different rules. Similar to this: #nav a:link or #main a:link or #footer a:link. You can also define different styles for the same elements in various content blocks. For example, the
This is a very simple application, but in the design, this can reduce the pressure on the server, is the number of requests decreased, is a good way.
In particular, in this small picture, even two pictures in fact, the response time is not much
Finally thank Raozou to share the effect code!
-
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
Description: This code does not have a document type and namespace declaration, I have tried, if
The IMG tag has two attributes, Alt and title, which are confusing for many beginners with the correct use of these two attributes, which is partly due to ie. The correct use of these two properties in addition to improve the image of the search
The benefits are:
Compatible with Ie,firefox,opera;
Good for content integrity, SEO friendly;
No background program processing;
The length to be intercepted can be adjusted at the front desk.
A bad place:
Cannot automatically determine the length
We can analyze the subtle differences in one piece of code:
How many methods can we use to index this text box object in IE browser? (For the sake of differentiation, we set the name and ID to a different value)
1. Odemo
2. Demoform.odemo
3.
In the next, summed up a few HTML coding elements, I hope to show you:
1. The size of the text itself is not compatible. The same is the font-size:14px text, in different browsers occupy the space is not the same, ie under the actual account of 16px,
Today saw the vibration of the order of the list of an article, feel very good. Write an example:
Type value
Build Style
Sequence examples
A
Capital
A, B, C, D, E
A
lowercase letters
A, B,
Write this effect and be familiar with the following:
1, the relative positioning of the absolute positioning;
2, CSS for browser HACK;
3, understand several border, and can realize the change, and add the border, the width and height of the
Click to view the results:
untitled document The following two div styles are basically the same, but the first plug-in (understand my meaning on the line) style: Background-color a!important behind, So, although the first Div line CSS
css table 1px border Cell-script home Scripting House scripting House & lt;/td> Scripting House scripting House scripting House Scripting House scripting House scripting House Script House
[Ctrl + A full
CSS table out of hidden fixed layout algorithm. In this algorithm, the horizontal layout is based only on the width of the table, the width of the table border, the cell spacing, the width of the column, and the table content independent
ie Method:
The content inside the tag is centered.
Non-IE methods:
The left and right margins of the marker are automatically adapted to achieve a center effect.
The standard recommended method of using CSS is the latter, IE's set of
Although many of the documents mentioned in this regard, many friends still make mistakes on these issues. Today we look at these CSS skills, read carefully, perhaps you do not fully understand that you can search, expand the knowledge you want to
Newly-written Tree:
1. Fixed a large number of slow loading problems
2. Improved application interface for greater scalability
Look at the effect first, then go back to writing the relevant use parameter document:)
Example
First, look at the page often appear in the button and text box of the original!
In contrast, how can we change the shape of the text box and the button? The following I provide you with two kinds of text box and button style as an example
CSS Multi-line multi-column News mode _ Experience Exchange
Look at the picture:
This effect, or even three columns of four columns of news module, I used to use table, thought than CSS convenience, until later issued a floating, the original with
"There is no attribute target for this element (in this HTML version)"
Originally in html4.01/xhtml1.0/xhtml1.1 strict doctype, target= "_blank", target= "_self" and so on are not valid syntax, we can only be adapted through JavaScript.
A friend
The worse thing is, even if you just for IE design, regardless of other browsers, because the IE model can be said to be an elusive monster, so you simply for IE design will encounter many problems, found that a lot of effects are always around to
First of all, the advantages of this architecture:
1. It is easy to allocate the heavy work of CSS writing without affecting each other.
2. Clear structure, conducive to maintenance and modification.
3. Each page loads only the CSS you need.
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