前端开发

CSS,Internet Explorer和魔术!

2021-01-18 14:12:36 阅读数 8945 收藏 0
我今晚遇到了这个奇怪的CSS
display: inline !ie;

现在我已经创建并看到了很多CSS,我从来没有看过这个或者它的神奇的力量。

您可以在任何规则的末尾添加“!ie”,只能由M $ Internet Explorer 6& 7

任何人都可以在这个WTF上发光吗?

解决方法

Internet Explorer 7 and below have a few quirks related to the !important declaration,which is supposed to give a value higher importance than normal.[3] IE7 and earlier accept virtually any string in place of important and process the value normally,while other browsers will ignore it.

Taken from !Important Quirks section in CSS Filter – Wikipedia