<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>turusuke_0</author_name>
  <author_url>https://blog.hatena.ne.jp/turusuke_0/</author_url>
  <blog_title>Webdelog</blog_title>
  <blog_url>https://www.webdelog.info/</blog_url>
  <categories>
  </categories>
  <description>最近要素を置換することができるCSSプロパティcontentにあるcounterという値を使ってなにか作れないかなぁと思っていたのでその時の備忘録です。 counterは要素の先頭などに連番をつけることができるので、リストタグで無くても番号をつけたりできます。 今回やったこと ボタンをクリック→ボタン消す→カウンターが要素の数に応じて変化今回Jsは一切使ってません。 対応ブラウザ : Webkit系ブラウザ(Chrome,Safariで動作確認,Firefoxだと白枠出ます) content:counterで取得した値を減算させるには… 要素の数で増えるんだったら減算もできるだろと思ってやって…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.webdelog.info%2Fentry%2F2011%2F10%2F02%2Fcss-only-statement.html&quot; title=&quot;CSSで要素数のカウント、要素のクリック状態保持 - Webdelog&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-10-02 09:00:00</published>
  <title>CSSで要素数のカウント、要素のクリック状態保持</title>
  <type>rich</type>
  <url>https://www.webdelog.info/entry/2011/10/02/css-only-statement.html</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
