<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>arms-nakamura</author_name>
  <author_url>https://blog.hatena.ne.jp/arms-nakamura/</author_url>
  <blog_title>arms inc. Engineers' Blog</blog_title>
  <blog_url>https://tech.arms-soft.co.jp/</blog_url>
  <categories>
    <anon>CSS</anon>
    <anon>フロントエンド</anon>
  </categories>
  <description>こんにちは、中村です。 今回はCSSの擬似クラス「:only-child」についてご紹介しようと思います。 擬似クラスとは？ セレクタ要素の特定の状態に対してスタイルを当てるためのクラスです。 ユーザーの操作に反応したり、要素の状態によって見た目を変えることができます。 :hoverや:nth-childなどがよく使われます。 :hoverの場合 リンクやボタンなどにカーソルを触れた時に、背景色を変化させたり、矢印のアイコンを動かしたりすることで次の動作を促す効果が期待できます。 :nth-childの場合 :nth-childは要素の順番に対する擬似クラスです。 偶数・奇数や特定の数の時にス…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.arms-soft.co.jp%2Fentry%2F2020%2F06%2F10%2F090000&quot; title=&quot;動的サイトで意外と便利！擬似クラス「:only-child」 - arms inc. Engineers&amp;#39; Blog&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/a/arms-nakamura/20200609/20200609175123.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-06-10 09:00:00</published>
  <title>動的サイトで意外と便利！擬似クラス「:only-child」</title>
  <type>rich</type>
  <url>https://tech.arms-soft.co.jp/entry/2020/06/10/090000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
