尝试了解一些 HTML5Boilerplate 项目
在HTML5Boilerplate中,CSS中的第72行到第80行,它说:
/* fonts.css from the YUI Library: developer.yahoo.com/yui/
Refer to developer.yahoo.com/yui/3/cssfonts/ for font sizing percentages
There are three custom edits:
* remove arial, helvetica from explicit font stack
* we normalize monospace styles ourselves
* table font-size is reset in the HTML5 reset above so there is no need
* to repeat
*/
body { font:13px/1.231 sans-serif; *font-size:small; } /* hack retained to
preserve specificity
*/
我想理解的是,为什么他们提到雅虎以及“保留黑客”是什么?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
指向雅虎的链接是指向雅虎用户界面库的链接,他们有一个东西那里
这意味着 Boilerplate 使用 YUI Fonts.css 作为基础,但已从 YUI Css 文件中删除了 Arial 和 Helvetica,本身标准化了等宽样式,并且我猜删除了表格字体大小,因为它已经在 HTML5 重置中。
该 hack 是针对 IE6 的 CSS hack:
*font-size:small;
仅在 IE6 及以下版本中可见。希望其中一些有所帮助。
The link to Yahoo is a link to the Yahoo User Interface library, they have a thing there that
This means that Boilerplate uses the YUI Fonts.css as their base, but have removed Arial and Helvetica from the YUI Css file, have normalised monospace styles themselves and have I guess removed the table font-size because it's already in their HTML5 reset.
The hack is a CSS hack that targets IE6:
*font-size:small;
will only be seen by IE6 and below.Hope some of that helps a bit.