Sass for循环中编译%时报错解决方案

sass功能强大,特别是支持for循环,节省大量开发时间,但是在开发时遇到一个问题,直接使用%时没有问题,当有变量时再加% 单位在编译时报错;这样没有问题:@for $width from 0 to 10{ .wp#{$width}{ width:$width px; }}...
posted @ 2014-07-07 14:36  kingwell  阅读(1024)  评论(0编辑  收藏  举报