SCSS笔记4 - 注释

2016-10-14  本文已影响17人  microkof

注释功能//

//可以像编程语言一样使用,编译时自动删除,另外/* */依然可用,编译时不删除。

多行注释如下,每一行不要超过80个字符为佳:

/**
 * Helper class to truncate and add ellipsis to a string too long for it to fit
 * on a single line.
 * 1. Prevent content from wrapping, forcing it on a single line.
 * 2. Add ellipsis at the end of the line.
 */
上一篇 下一篇

猜你喜欢

热点阅读