试图了解一些HTML5Boilerplate项目

Kri*_*iem 9 css html5 boilerplate

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 
                                                       */ 
Run Code Online (Sandbox Code Playgroud)

我想要了解的是,为什么他们提到雅虎以及什么'黑客被保留?'

Kyl*_*yle 9

Yahoo的链接是Yahoo User Interface库的链接,他们有一个东西

...提供跨浏览器排版规范化和控制,同时仍允许用户选择和调整其字体大小.

这意味着Boilerplate使用YUI Fonts.css作为基础,但是已经从YUI Css文件中删除了Arial和Helvetica,自己规范化了等宽样式,并且我猜想删除了表格字体大小,因为它已经在HTML5重置中了.

黑客是一个针对IE6的CSS黑客攻击:*font-size:small;只能被IE6及以下版本看到.

希望其中一些有所帮助.