2016-11-07 38 views
0

什么是CSS属性(字体和字体系列)末尾的星号?CSS属性末尾的星号

/* 
Copyright (c) 2009, Yahoo! Inc. All rights reserved. 
Code licensed under the BSD License: 
http://developer.yahoo.net/yui/license.txt 
version: 2.8.0r4 
*/ 
body{ 
    font:14px Minion New,times,clean,serif;* 
    font-size:small;* 
    font:x-small; 
    } 
pre,code,kbd,samp,tt{ 
     font-family:monospace;* 
     font-size:108%; 
     line-height:100%; 
    } 

是否与the IE7 hack相同?但是这个星号在最后。

+2

可能重复[在CSS中星号前面的属性意味着什么?](http://stackoverflow.com/questions/1667531/what-does-a-star-preceded-property-mean-in-css) – Serlite

+0

我知道IE浏览器黑客。但是这个星号在END,而你提到的那个是在开头。 –

+3

如果消除规则之间的空白,可以看到它 - 因为CSS中的空白对浏览器读取方式没有影响,所以可以在后面一行的开头考虑行尾的星号。 – Serlite

回答

0

这是一个css hack,用于IE8前面带有星号的属性只影响导航器IE8。

最后还是在开始是相同的CSS。