Skip to content

Instantly share code, notes, and snippets.

@apprentice1988
Last active January 3, 2016 20:39
Show Gist options
  • Save apprentice1988/8516612 to your computer and use it in GitHub Desktop.
Save apprentice1988/8516612 to your computer and use it in GitHub Desktop.
css 继承 - 在comment处添加属性,后面的以'button-'开始的css都会自动继承该属性
[class*=“button-“] {
/* base button properties */
}
.button-primary { ... }
.button-plain { ... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment