Skip to content

Instantly share code, notes, and snippets.

@maiko-ampersand
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save maiko-ampersand/3e3d418a6e212827bba8 to your computer and use it in GitHub Desktop.

Select an option

Save maiko-ampersand/3e3d418a6e212827bba8 to your computer and use it in GitHub Desktop.
属性セレクタE[foo~="bar"]
<style type="text/css">
span[class~="hoge"] {
color : red;
}
</style>
<span class="fuga piyo">ヒットしない</span>
<span class="piyo hoge">ヒットする</span>
<span class="piyo hogeboo">ヒットしない 要素の一致であって文字が含まれるかどうかではない</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment