{"id":9411,"date":"2015-06-22T17:49:03","date_gmt":"2015-06-22T08:49:03","guid":{"rendered":"http:\/\/www.itblog.jp\/?p=9411"},"modified":"2015-06-22T17:49:03","modified_gmt":"2015-06-22T08:49:03","slug":"css%e3%81%aenth-child%e3%81%a8nth-of-type%e3%81%ae%e9%81%95%e3%81%84","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9411","title":{"rendered":"CSS\u306enth-child\u3068nth-of-type\u306e\u9055\u3044"},"content":{"rendered":"<p>CSS3\u304b\u3089\u4f7f\u3046\u3053\u3068\u304c\u51fa\u6765\u308b\u4fbf\u5229\u306a\u66f8\u304d\u65b9\u3068\u3057\u3066<\/p>\n<p>nth-child\u3000\u3068\u3000nth-of-type<\/p>\n<p>\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u7279\u5b9a\u306e\u8981\u7d20\u306e\u6570\u3092\u6307\u5b9a\u3057\u3066\u3001\u305d\u3053\u306b\u3060\u3051\u30b9\u30bf\u30a4\u30eb\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070<\/p>\n<p>div.box  li:nth-child(3n)\u3000{<br \/>\n\u3000\u3000\u3000\u3000\u30b9\u30bf\u30a4\u30eb<br \/>\n}<\/p>\n<p>\u306e\u5834\u5408\u3001\u30af\u30e9\u30b9\u300cbox\u300d\u306e\u4e2d\u306e\u3001li\u306e\u8981\u7d20\u306e\uff13\u306e\u500d\u6570\u306e\u8981\u7d20\u306b\u30b9\u30bf\u30a4\u30eb\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4e00\u65b9<\/p>\n<p>div.box  li:nth-of-type(3n)\u3000{<br \/>\n\u3000\u3000\u3000\u3000\u30b9\u30bf\u30a4\u30eb<br \/>\n}<\/p>\n<p>\u3053\u306e\u5834\u5408\u3082\u540c\u69d8\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u3053\u306e\uff12\u3064\u3067\u4f55\u304c\u9055\u3046\u304b\u3068\u3044\u3046\u3068\u3001<\/p>\n<p>nth-child<\/p>\n<p>\u306e\u5834\u5408\u306f\u3001\u9014\u4e2d\u306b\u4f55\u304b\u4ed6\u306e\u8981\u7d20\u304c\u5165\u3063\u3066\u3082\u3001\u305d\u308c\u3082\u30ab\u30a6\u30f3\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3067\u3001nth-of-type\u306e\u5834\u5408\u306f\u9014\u4e2d\u306b\u4f55\u304b\u4ed6\u306e\u8981\u7d20\u304c\u5165\u308b\u5834\u5408\u3001\u305d\u308c\u3092\u30ab\u30a6\u30f3\u30c8\u305b\u305a\u306b\u6307\u5b9a\u3057\u305f\u8981\u7d20\u306e\u307f\u3092\u30ab\u30a6\u30f3\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u9055\u3044\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u3067\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u3042\u3063\u305f\u307b\u3046\u3092\u4f7f\u3044\u5206\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CSS3\u304b\u3089\u4f7f\u3046\u3053\u3068\u304c\u51fa\u6765\u308b\u4fbf\u5229\u306a\u66f8\u304d\u65b9\u3068\u3057\u3066 nth-child\u3000\u3068\u3000nth-of-type \u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u308c\u306f\u3001\u7279\u5b9a\u306e\u8981\u7d20\u306e\u6570\u3092\u6307\u5b9a\u3057\u3066\u3001\u305d\u3053\u306b\u3060\u3051\u30b9\u30bf\u30a4\u30eb\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002 \u4f8b\u3048\u3070 div.b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[131],"tags":[],"class_list":["post-9411","post","type-post","status-publish","format-standard","hentry","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9411"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9411\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}