<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>XxGodmoonxX</author_name>
  <author_url>https://blog.hatena.ne.jp/XxGodmoonxX/</author_url>
  <blog_title>青いやつの進捗日記。</blog_title>
  <blog_url>https://tech.motoki-watanabe.net/</blog_url>
  <categories>
    <anon>タブ切り替え</anon>
    <anon>display</anon>
    <anon>none</anon>
    <anon>Javascript</anon>
    <anon>scrollTop</anon>
    <anon>CSS</anon>
    <anon>HTML</anon>
  </categories>
  <description>こんな感じでタブで選んで中身のコンテンツを入れ替えたい。 わかりづらいがこの上がタブで、下がコンテンツ。 しかも、そのタブは上下にあり、どちらでも中身のコンテンツを入れ替えられる。 ↓下 つまり、 こういう感じ。 で、問題なのは、 ・このコンテンツは1つ目だけが高さが少ない ・このコンテンツをdisplay: blockとdisplay:noneで入れ替えている の2つ。 高さが変わらないのであればdisplayで切り替えても問題ない。 もしくは高さが変わるならばdisplayではなくopacityとvisibilityで消して、コンテンツ自体は一番大きいのは普通に置いてそれ以外をabsolu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.motoki-watanabe.net%2Fentry%2F2019%2F11%2F20%2F012713&quot; title=&quot;タブ切り替え等で中身のコンテンツの高さが変わる、display:noneで切り替えているときの、その切り替えているコンテンツの下の位置でスクロール位置保持 - 青いやつの進捗日記。&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/X/XxGodmoonxX/20191120/20191120012255.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-11-20 01:27:13</published>
  <title>タブ切り替え等で中身のコンテンツの高さが変わる、display:noneで切り替えているときの、その切り替えているコンテンツの下の位置でスクロール位置保持</title>
  <type>rich</type>
  <url>https://tech.motoki-watanabe.net/entry/2019/11/20/012713</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
