Skip to content

Instantly share code, notes, and snippets.

@synzhang
Last active December 25, 2015 09:59
Show Gist options
  • Save synzhang/6958662 to your computer and use it in GitHub Desktop.
Save synzhang/6958662 to your computer and use it in GitHub Desktop.
注释风格
<header>
</header> <!-- / header -->
<div id="wrapper">
</div> <!-- / #wrapper -->
<div class="module">
</div> <!-- / .module -->
/* ==========================================================================
区块注释段
========================================================================== */
/* 子区块注释段
-------------------------------------------------------------------------- */
/**
* 分组注释段
* 用于多行的释义或文档。
* 1. 注释1。
* 2. 注释2。
*/
.selector {
property1: value1; /* 1 */
property2: value2; /* 2 */
}
/* 基本注释 */
// ==========================================================================
// 区块注释段
// ==========================================================================
// 子区块注释段
// --------------------------------------------------------------------------
//
// 分组注释段
// 用于多行的释义或文档。
//
// 基本注释
// A button suitable for giving a star to someone.
// Experimental: An alternative signup button styling used in AB Test #195.
// Deprecated: Styling for legacy wikis. We'll drop support for these wikis on
// July 13, 2007.
//
// :hover - Subtle hover highlight.
// .star-given - A highlight indicating you've already given a star.
// .star-given:hover - Subtle hover highlight on top of star-given styling.
// .disabled - Dims the button to indicate it cannot be used.
//
// Compatible in IE6+, Firefox 2+, Safari 4+.
// Compatibility untested.
//
// Styleguide 2.1.3.
// No styleguide reference.
// Creates a linear gradient background, from top to bottom.
//
// $start - The color hex at the top.
// $end - The color hex at the bottom.
/* ==========================================================================
区块注释段
========================================================================== */
/* 子区块注释段
-------------------------------------------------------------------------- */
/**
* 模块简介
*
* 具体细节
*
* @param {string} args1 参数 1。
* @param {array} args2 参数 2。
* @returns void
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment