相关疑难解决方法(0)

less.js无法使用chrome

我注意到less.js在firefox中工作但在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%;
}
Run Code Online (Sandbox Code Playgroud)

即使我尝试html { background: red; }它仍然无法在chrome中工作我在某处犯了错误?

css google-chrome less

57
推荐指数
3
解决办法
4万
查看次数

标签 统计

css ×1

google-chrome ×1

less ×1