【发布时间】:2023-03-16 17:53:03
【问题描述】:
HTML
<div class="cont" id="cont">
<img class="c1" id="c1" src="..."></img>
</div>
<div class="men" id="men">
<a href="..."></a>
</div>
CSS
.cont {
float: left;
display: inline-flex;
}
.c1 {
position: absolute;
right: 0;
}
.men {
position: absolute;
top: 10px;
width: 385px;
height: 50px;
right: 80px;
}
.men > a {
position: absolute;
left: 0;
width: 290px;
height: inherit;
}
使用引导程序 3。
问题
使用IE 11,一切都很好,图像被放置在屏幕的右上角(还有c2等来解释.cont的flot left,但与问题无关)并且.men div被放置在所需位置的图像顶部。但是,在 IE 10 中,它位于图像的后面。 z-index 也无法完成这项工作。
【问题讨论】:
-
你能用<map>元素代替吗?
标签: html css internet-explorer-11 internet-explorer-10