Browser support for askerisk ( * ) wild card in CSS?

笑着哭i 提交于 2019-12-23 09:46:58

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!