问题
Which browsers are able to understand and implement asterisk ( * ) in CSS properly? (By 'properly' I actually meant -- 'as they are supposed to'.)
Consider this CSS code for example:
pre .comment * {
color: #800;
}
EDIT: I see now that it's called the '* selector' or 'universal selector'. Thanks a lot for the input. :)
回答1:
All major browsers do. Internet explorer supports it without bugs from 8.0.
See here: http://reference.sitepoint.com/css/universalselector#compatibilitysection
回答2:
According to this tab, all modern browsers should understand it...
来源:https://stackoverflow.com/questions/9988865/browser-support-for-askerisk-wild-card-in-css