CSS,Internet Explorer和魔术!

前端之家收集整理的这篇文章主要介绍了CSS,Internet Explorer和魔术!前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我今晚遇到了这个奇怪的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

原文链接:https://www.f2er.com/css/218383.html

猜你在找的CSS相关文章