使用 ! (感叹号)在CSS属性名称中 [英] Using ! (exclamation mark) in CSS property name

查看:689
本文介绍了使用 ! (感叹号)在CSS属性名称中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到它现在使用过一次或两次,其中!标记放在属性名称之前.例如:

I've seen this used once or twice now, where ! mark is put before property name. For example:

!overflow: hidden;

(另请请参阅此处)

任何人都可以阐明其目的是什么?

Can anyone shed some light on what its purpose is?

推荐答案

我找不到有关它的任何信息,但显然是黑客.至少Chrome不会应用属性名称中带有感叹号的样式.对我来说有趣的是,至少对于我检查过的样式,另一个样式表应用了完全相同的样式,但正确的方式是正确的-所以也许这只是一个直截了当的错误.

I can't find any information about it but it is apparently a hack. At least Chrome will not apply the styles where the property names have exclamation marks in them. What's interesting to me is that at least for the styles I checked, the exact same style is applied by another stylesheet except correctly -- so maybe it's just a straight up mistake.

这篇关于使用 ! (感叹号)在CSS属性名称中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆