dポイントプレゼントキャンペーン実施中!

.tab > input:first-child:checked ~ .cp_tabpanels > .cp_tabpanel:first-child,
.tab > input:nth-child(3):checked ~ .cp_tabpanels > .cp_tabpanel:nth-child(2),
.tab > input:nth-child(5):checked ~ .cp_tabpanels > .cp_tabpanel:nth-child(3),
.tab > input:nth-child(7):checked ~ .cp_tabpanels > .cp_tabpanel:nth-child(4),
.tab > input:nth-child(9):checked ~ .cp_tabpanels > .cp_tabpanel:nth-child(5),
.tab > input:nth-child(11):checked ~ .cp_tabpanels > .cp_tabpanel:nth-child(6)

A 回答 (1件)

下記サイトにすべて書かれています。



・意外と知らない!?CSSセレクタ20個のおさらい
http://weboook.blog22.fc2.com/blog-entry-268.html
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!