ie method:
The content within the tag is centered.
Non ie method:
the left and right margins of the mark are automatically adapted to achieve the center effect.
The standard recommended CSS use method is the latter, IE's set of
Difference IE6 with FF:
Background:orange;*background:blue;
Distinction between IE6 and IE7:
Background:green!important;background:blue;
Difference IE7 with FF:
Background:orange; *background:green;
Difference
I have two examples here, if your browser is IE, you can test!
1, first look at these lines of code!
Copy Code code as follows:
Note: I have written more than one Look at the effect, rest assured that this will not
First look at the picture (the image is just roughly done)
Effect Display :
Run Code Box
Untitled document menu menu ;li> Menu;/li>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to
Click to view Effect:
untitled document The following two div style is basically the same, but the first plug-in (understand my meaning on the line) style: Background-color followed by a!important
, so, although the first Div inline
Grammar: style= "Filter:filtername (Fparameter1, fparameter2 ...)"(FilterName is the name of the filter, Fparameter1, Fparameter2, etc. are parameters of the filter)Script syntax: Htmlelement.filters.filtername.fparameter=value;
Filter Description:
Recent work, encountered a lot of problems, one of the problems I think is the most important, that is the order of CSS writing, he can reflect a front-end worker's thinking. If you see this article, do not think about which attribute to write which
Modify your style sheet to find the bottom section (usually at the beginning)
A
Color: #3399FF;
Font-weight:normal; /* Font effect normal can be changed to bold rough body * *
Text-decoration:none; /* Underline effect: no underline * *
}
a:hover
One, the management of CSS
I personally feel more important, and the Internet seems to be relatively few say this
If you manage well, you'll save a lot of time and trouble when you call and define CSS
Here are some of my accumulated
The first is
CSS code:
. list{
margin:0px 10px 20px;
Text-align:left
}
. List ul{
list-style-type:none;
margin:0px;
padding:0px
}
. List li{
background:url (/news/images/line.gif) Repeat-x bottom;
/* The dotted line at the bottom of the list *
/width:
IE5 and its later versions support the use of expression in CSS to associate CSS properties with Javas cript expressions, where CSS attributes can be intrinsic or custom attributes of an element. This means that the CSS property can be followed by a
First, use the Style property
Add the STYLE attribute directly to the individual component label,
For example:The advantage of this usage is that it can be used neatly in each label, but the disadvantage is that there is no "uniformity" of the
The application of IFrame is very common, there are usually two kinds of requirements:1, to obtain an IFRAME effect, that is, with a scroll bar, you can save a lot of suites.2, to embed a page, to implement the framework link.If you are not
1.CSS Font Shorthand rules
You might do this when you use CSS to define fonts:
Font-size:1em;
Line-height:1.5em;
Font-weight:bold;
Font-style:italic;
Font-variant:small-caps;
Font-family:verdana,serif;
In fact, you can abbreviate these
Author: Flyingbird from: Blue Ideal
The processing of the font in the Web page design no matter how stressed is not too much, after all, the use of Web pages to convey information, and the most direct way of information transmission is text, so, to
There will be additions or modifications to the content over time, and it is hoped that the following things will be helpful or useless to the later standard learners.
The main content is the difference between IE and Mozilla and easy to ignore
Simulated landscaping select_ cloud habitat & lt;/td> " Option one option two;/option> option three option four option five option six Options seven Option one option two option three
The function has two parameters and functions as follows:
Obj:img the parent container of the label group, the type is a DOM object;
Oevent:event object.
The advantage of this function is that the HTML code can be very concise, the use of pictures
clear with empty label
. clr {clear:both;}
Left
Right
using the Overflow property
#layout {overflow:auto; zoom:1;}
Left
Right
usage: After (non IE browser)
#layout: after{
Display:block;
Clear:both; Content: "";
Visibility:hidden; height:
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