ホームページ  >  記事  >  ウェブフロントエンド  >  親要素が相対的に配置された後、IE では子要素が上書きされます。 _html/css_WEB-ITnose

親要素が相対的に配置された後、IE では子要素が上書きされます。 _html/css_WEB-ITnose

WBOY
WBOYオリジナル
2016-06-24 12:34:071251ブラウズ

<div id="append_parent" style="position: relative;">        <div id="zoomimglayer" style="position: absolute; padding: 0px; left: 551.5px; top: 142px;            width: 800px; height: 439px; cursor: pointer;" class="popupmenu_popup">            <img id="zoomimg" style="cursor: move; margin: 5px; z-index: 1000; position: absolute;"                src="http://www.orico.com.cn/images/2013925141939458.jpg" width="800" height="543">        </div>        <div id="zoomimglayer2" style="position: absolute; padding: 0px; left: 551.5px; top: 142px;            width: 800px; height: 439px; cursor: pointer;" class="popupmenu_popup">            <div id="dprev" title="上一张" style="position: absolute; left: 0; top: 20px; z-index: 1001;                cursor: pointer; width: 40%; height: 523px;" onclick="alert('上一张')">                <a style="top: 271.5px; position: absolute;" class="prev">上一张</a>            </div>            <!-- .main -->            <div id="dnext" title="下一张" style="position: absolute; right: 0; top: 20px; z-index: 1001;                cursor: pointer; width: 40%; height: 523px;" onclick="alert('下一张')">                <a style="position: absolute; top: 271.5px; right: 0;" class="next">下一张</a>            </div>        </div>    </div>

上記の HTML は、親クラスの相対位置と子要素の絶対位置を定義しています。

りー

りー

りーりー

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。