2010-06-21 17 views
55

Ho notato che less.js funziona in Firefox ma non in Chrome, o è perché ho fatto un errore?less.js non funziona in chrome

<link rel="stylesheet/less" href="css/style.less" /> 
<script src="http://lesscss.googlecode.com/files/less-1.0.21.min.js"></script> 

@highlight: #cb1e16; 
@shade1: #cb1e16; 
@tone1: #5c6f7d; 
@grad1: #e6edf3; 
@grad2: #8a8d92; 
@text1: #333e44; 

header, footer, section, article, nav, aside { display: block; } 

.grad { 
    background: @grad2; 
    background: -moz-linear-gradient(top, @grad1, @grad2 1200px); 
    background: -webkit-gradient(linear, 0 0, 0 1200, from(#e6edf3), to(#8a8d92)); 
} 

html { 
    .grad; 
    min-height: 100%; 
} 

anche se cerco html { background: red; } ancora non funziona in cromo Sto facendo un errore da qualche parte?

+0

Il tuo CSS non è pensato per essere inserito in un tag