Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

2012-09-02から1日間の記事一覧

CSS 属性値セレクタの複数指定

CSS

属性値セレクタを複数指定すると、指定された属性と値の組み合わせを全てもつ要素にスタイルが適用されます。 使用例 <html lang="ja"> <head> <title>Hello! CSS</title> <meta charset="UTF-8"> <style> [id="first"][class="notification"] { /* id:first、class:notificationが指定された要素 */ color: red; } </style> </head> <body> </body></html>