gpt4 book ai didi

css - Github 的 CSS 样式指南

转载 作者:行者123 更新时间:2023-11-28 17:47:30 25 4
gpt4 key购买 nike

当我看到这个时,我正在阅读 Github 的风格指南(https://github.com/styleguide/css):

  • Use // for comment blocks (instead of /* */).

我读过的每个网页设计师都说不要这样做,而是使用 /* */ 代替。为什么 Github 推荐另一种方式?

最佳答案

@Felix Kling 对这个问题的第一条评论似乎是一个完美的答案。

GitHub seems to use SCSS, not pure CSS. SCSS supports //, CSS doesn't. As you can read at the very top of the page you linked to: "Welcome to the GitHub CSS Styleguide. It's pretty rad. Before reading this, you should have a general understanding for specificity, the SCSS syntax, and KSS documentation.

关于css - Github 的 CSS 样式指南,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22972296/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com