Skip to content

Instantly share code, notes, and snippets.

@kubosho
Last active June 23, 2016 17:17
Show Gist options
  • Select an option

  • Save kubosho/a7aae561f2b33f4b658f5bce5fbe6bb5 to your computer and use it in GitHub Desktop.

Select an option

Save kubosho/a7aae561f2b33f4b658f5bce5fbe6bb5 to your computer and use it in GitHub Desktop.
加点方式とバージョン番号方式
/* 下のほうが詳細度が高く見えるが実際は上のほうが詳細度が高い */
div .test {
/* 詳細度は a=0, b=1, c=1 なので、11となる */
background-color: blue;
}
div div div div div div div div div div div div div {
/* 詳細度は a=0, b=0, c=13 なので、13となる */
background-color: pink;
}
/* バージョン番号方式 */
div .test {
/* 詳細度は a=0, b=1, c=1 なので、0.1.1となる */
background-color: blue;
}
div div div div div div div div div div div div div {
/* 詳細度は a=0, b=0, c=13 なので、0.0.13となる */
background-color: pink;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment