<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>edvakf</author_name>
  <author_url>https://blog.hatena.ne.jp/edvakf/</author_url>
  <blog_title>by edvakf in hatena</blog_title>
  <blog_url>https://edvakf.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>body 要素のデフォルトスタイルは position:static なのだが、サイトによっては position:relative とかが付いていたりする。以下では、そういうサイトで起こる問題を説明する。 例えば何か適当な要素をドキュメントの一番左上に置くとき、その要素の position を absolute にして、top と left で座標を指定することがある。特に JavaScript で動的に作る要素はこういうことをする場合が多い。左上に限らず、マウスでクリックした位置に要素を置く場合の常套手段でマウスイベントの pageX と pageY を使ったりもする。そういうとき、bod…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fedvakf.hatenadiary.org%2Fentry%2F20100830%2F1283199419&quot; title=&quot;body { position : relative | absolute | fixed; } - by edvakf in hatena&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/e/edvakf/20100831/20100831030722.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-08-30 05:16:59</published>
  <title>body { position : relative | absolute | fixed; }</title>
  <type>rich</type>
  <url>https://edvakf.hatenadiary.org/entry/20100830/1283199419</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
