在css中使用*符号 [英] usage of * symbol in css
本文介绍了在css中使用*符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我发现一些样式表使用 *
符号。例如 * zoom:1;
*
符号代表什么。有时会出现 [class * =span]
这个。可以任何人清除我在css中使用符号 *
解决方案
* zoom
是一个hack,它应用它ie6和ie7。 * {}
是通配符(匹配所有元素或子集;如果使用 #header *
#header
的后代)。 [class * =span]
匹配具有 class
p>
I found some stylesheets using *
symbol on it. for example *zoom: 1;
what does the *
symbol stands. sometimes which appears like [class*="span"]
this. can anybody clear me the usage of the symbol *
in css
解决方案
*zoom
is a hack that applies it ie6 and ie7. * { }
is a wildcard (matches all elements or subset; if used like #header *
it would apply to all descendants of #header
). [class*="span"]
matches elements that have a class
with the word "span" anywhere.
这篇关于在css中使用*符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文