<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hogashi</author_name>
  <author_url>https://blog.hatena.ne.jp/hogashi/</author_url>
  <blog_title>hogashi.*</blog_title>
  <blog_url>https://blog.hog.as/</blog_url>
  <categories>
    <anon>CSS</anon>
    <anon>HTML</anon>
  </categories>
  <description>CSS には :nth-child() - CSS: Cascading Style Sheets | MDN という疑似クラスがあって、何番目の兄弟かを指定できる。 :nth-child(3) とかやると 3番目、みたいな感じで、 1 始まりになっている。 li:nth-child(3) { background-color: gold; font-size: 2em; } 恵比寿 大黒天 福禄寿 毘沙門天 布袋 寿老人 弁財天 これの書き方に :nth-child(2n + 1) みたいなものがあって、こうすると奇数番目だけ指定できる。これは 2n だけじゃなくて、たとえば 5n にすれば…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hog.as%2Fentry%2F2022%2F01%2F24%2F213342&quot; title=&quot;CSSで3番目以降を:nth-child(n + 3)で書く - hogashi.*&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/h/hogashi/20220124/20220124213358.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-01-24 21:33:42</published>
  <title>CSSで3番目以降を:nth-child(n + 3)で書く</title>
  <type>rich</type>
  <url>https://blog.hog.as/entry/2022/01/24/213342</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
