|
发表于 2010-4-29 09:01:54
|
显示全部楼层
- /* Internet Explorer */
-
- /* IE 6 only */
- body #ie6 {
- _display: block;
- }
- /*IE 6 and IE 7 */
- #ie6andie7 {
- *display: block;
- }
- /* IE 7 only */
- html > body #ie7 {
- *display: block;
- }
- /* IE 6, IE 7 and 8 */
- body #ie6andie7andie8{
- display:block\9;
- }
- /* IE 8 only */
- body #ie8{
- display:block\9;
- *display: none; /*overrule for ie6 and ie7 which also read this rule*/
- }
-
- /* Firefox */
-
- /*Firefox 2 and 3 */
- #firefox2, x:-moz-any-link {
- display: block;
- *display: none; /*overrule for ie6 and ie7 which also read this rule*/
- }
- /*Firefox 3 only (for Firefox 2 only use the rule above and this to overwrite for Firefox 3*/
- #firefox3, x:-moz-any-link, x:default {
- display: block;
- *display: none; /*overrule for ie6 and ie7 which also read this rule*/
- }
-
- /* Safari */
- @media screen and (-webkit-min-device-pixel-ratio:0) {
- #safari {
- display: block;
- }
- }
-
- /* Opera */
- @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) {
- head~body #opera {
- display: block;
- }
- }
复制代码- .css{
- padding:10px;
- padding:9px\9; /* all ie */
- padding:8px\0; /* ie8-9 */
- *padding:5px; /* ie6-7 */
- +padding:7px; /* ie7 */
- _padding:6px; /* ie6 */
- }
复制代码 |
|