在等号之前的星号是什么意思(* =)?感叹号怎么办? [英] What does an asterisk before an equal sign mean (*=) ? What about the exclamation mark?
本文介绍了在等号之前的星号是什么意思(* =)?感叹号怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在css中找到了这些符号:
I found these notations in a css :
.nav li ul li a [class*="icol-"] { opacity: 0.5; filter: alpha(opacity=50); padding-top: 4px; }
.secNav .chzn-container { width: 100%!important; max-width: 100%; }
*
之前的 =
符号?使用!
符号时是否注释?
What does the meaning of the *
before the =
sign ? Is it a comment when using the !
symbol ?
推荐答案
!
是!important
的一部分; 不评论。 !important
强制规则始终应用。它通常用于覆盖或防止您的样式被覆盖。
!
is part of !important
; it is not a comment. The !important
forces a rule to always be applied. It's typically used to override or to prevent your style from being overridden.
* =
表示包含。因此,在示例中,第一行正在查找 .nav li ul li a
的所有子类,其类名包含icol - 。
The *=
means "contains". So in the example, the first line is looking for all children of .nav li ul li a
elements with classnames that contain "icol-".
这篇关于在等号之前的星号是什么意思(* =)?感叹号怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文