Home  >  Article  >  Web Front-end  >  关于设置ie6,ie7样式的问题_html/css_WEB-ITnose

关于设置ie6,ie7样式的问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:30:40872browse

如图,我想设置在IE6环境下position=absolute,在IE7环境下position=relative
实验发现,*position:absolute;对IE6,IE7都有效,
*position:relative !important;对IE6,IE7也都有效,
但是 !important在IE6中是不能识别的,也就是说
*position:relative !important;只对IE7才有效才对啊.
请大家指点,我这样到底哪里有问题了呢?


回复讨论(解决方案)

顺序问题
楼主试试
*position:relative !important;
*position:absolute;

还可以这样写
*position:relative;
_position:absolute;

谢谢你,忘记了从高版本到低版本进行设置的规则了....

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn