Using ! (exclamation mark) in CSS property name

前端 未结 1 1942
轻奢々
轻奢々 2021-01-13 15:38

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

!overflow: hidden;

(also, see h

相关标签:
1条回答
  • 2021-01-13 15:42

    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.

    0 讨论(0)
提交回复
热议问题