New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS 通配符 #37

Open
paddingme opened this Issue Apr 17, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@paddingme
Owner

paddingme commented Apr 17, 2015

  • 会影响 css 属性继承。

例如

<p>xx<span>oo</span></p>
* {
  font-size: 14px;
} 

p { font-size: 16px}

span 不会继承 16,而会默认接受 通配符字体大小。

可以使用:

* {
  font-size:inhreit;
}

修改

使用 通配符对 网页渲染曾在性能问题,因为需要不断继承,改写通配符的样式。

另如上所述不便于维护,debug。

所以 CSS 文件中写通配符的没小 JJ。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment