Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

颜色值编译后为什么不对? #47

Closed
xiamu14 opened this issue Nov 30, 2016 · 2 comments
Closed

颜色值编译后为什么不对? #47

xiamu14 opened this issue Nov 30, 2016 · 2 comments

Comments

@xiamu14
Copy link

xiamu14 commented Nov 30, 2016

编译前:颜色值是 #ccc
@support-ie-version: 8;
@use-autoprefixer: false;

.comment:after {
.triangle(top left, #cccccc, 10px, corner);
}
编译后:颜色值是 #666
.comment:after {
position: absolute;
width: 0;
height: 0;
border: #666666 solid 10px;
border-bottom-color: transparent;
border-right-color: transparent;
}

@Justineo
Copy link
Member

这个 mixin 的调用方式是 .triangle(@direction, @size, @color, @origin),你 @size@color 写反了。
参考:http://ecomfe.github.io/est/#triangle-1

@xiamu14
Copy link
Author

xiamu14 commented Nov 30, 2016

谢谢,我在estFiddle里调试的,没仔细看文档的api介绍。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants