English 中文(简体)
为什么要赢得我的遗体,坐在我7月的形象之上?
原标题:Why won t my div sit on top of my image in ie7?

我知道7 z-index bug,然而,我仍然无法坐在外貌上。 这是我现有的法典:

<div id="wrapper">
  <div id="content">
    <div class="copy">...</div>
    <div id="toggle-view"></div>
    <img id="view" src="/..." />
  </div>
</div>

这里是ty忙的:

#wrapper { width: 960px; margin: 0 auto 0 auto; background: #fff; }
#content { width: 960px; height: 555px; position: relative; z-index: 20; }
#toggle-view { display: block; width: 150px; height: 25px; cursor: pointer; position: absolute; top: 12px; right: 10px; z-index: 10; }
#view { width: 722px; height: 555px; position: relative; z-index: 1; }

This works fine in Chrome/FF etc but not ie7. How can I get the #toggle-view div to sit on top of the #view img.

成就

EDIT:Oka I, 引出。 由于某种原因,如果该元素没有一套背景财产,那么它就能够正确处理ie-指数(似乎有9种)。 我对伊斯兰法院表示非常仇恨。

问题回答

当你在顶上说话时,你指的是你想要把四人放在顶上或之上?

I have created a jsfiddle http://jsfiddle.net/trickeedickee/wPz2X/ using your code and it works perfectly fine in IE7, you have your #toggle-view div sitting on the right hand side of the container, was this intentional.Let me know if this is the answer and if not I will try help you some more.

仅100%的明晰度,我附上了E7中支离破碎的屏幕。 我在左手边和像一层一层一样的形象上坐着眼。 这显然高于形象。 这难道不是你回顾的结果吗?

“entergraph





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签