<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>misos</author_name>
  <author_url>https://blog.hatena.ne.jp/misos/</author_url>
  <blog_title>めも</blog_title>
  <blog_url>https://paper.hatenadiary.jp/</blog_url>
  <categories>
    <anon>web</anon>
    <anon>css</anon>
  </categories>
  <description>attr関数 使用例 css 側 html側 表示結果 attr関数 選択された要素の属性の値を受け取ってスタイルシートの中で使うことができるようになる。 javascriptなしで文字列の切り替えなどができるようにできる。 使用例 content: attr(teamname);の箇所で「input[type=radio]:nth-child(1)に概要する要素にhoverした時、afterにteamname属性の値を表示する」ようにする。 css 側 input[type=radio]:nth-child(1):hover::after{ content: attr(teamname); …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpaper.hatenadiary.jp%2Fentry%2F2018%2F12%2F24%2F210338&quot; title=&quot;cssのattr関数を使ってオンマウス時に要素の周辺に文字列を表示する - めも&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/m/misos/20181224/20181224205942.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-12-24 21:03:38</published>
  <title>cssのattr関数を使ってオンマウス時に要素の周辺に文字列を表示する</title>
  <type>rich</type>
  <url>https://paper.hatenadiary.jp/entry/2018/12/24/210338</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
