A small error code will invalidate the style in IE.
# Topnav, # header,. Line,. threecolarea,. twocolarea {
Width: 960px;
Margin: 0 auto;/* uniformly set the outer width */Nonstandard writing
Clear: both;
}
The preceding method causes the IE to display abnormally, And the cause is not found. Adding a space in the comment will display normally.
I. annotation writing specifications
1. Line comment:
Directly after the property value, such:
# Topnav, # header,. Line,. threecolarea,. twocolarea {
Width: 960px;
Margin: 0 auto;/* uniformly set the outer width */Note that spaces are left before the text and asterisk (*).
Clear: both;
}
2. comments for the entire segment:
Add comments at the beginning and end, for example:
/* = Search Results = */
. Search {
Border: 1px solid # FFF;
Background: URL (../images/icon.gif) No-repeat #333;
}
/* ===== Search end ===== */
For more details, see:
A css writing standard http://www.cnblogs.com/sikeart/archive/2008/06/18/1224544.html