English 中文(简体)
在 Chrome和IE进行绝对定位工作,在FF 进行。
原标题:Absolute positioning works fine in Chrome and IE, it doesn t in FF

我正试图在桌子(相对位置)内确定四分位的位置,并在 Chrome和伊埃大事中工作,但在森林论坛看来,这似乎与整个身体相比是绝对的。

我试图让我干).在囚室顶部展示(这一联系只是用来在我的法典中找到另一个要素,但这应该放在囚室的上层位置)。 然而,在FF,碎块出现在整个屏幕的顶端,(由屏幕定位的)链条是整个屏幕的最右侧。

相关法典:

<TD ID="EVENT" style="position:relative;">
<a href="#" id="Menu" style="position:absolute;top:0;right:0;"></a>
    <div id="detail" style="position:absolute;top:0;left:0;width:100%;z-index:10;">
    content
</div>
</TD>
最佳回答

我不敢肯定这是否与问题相关,但你在桌子中再次遗漏了引号:

<TD ID="EVENT style="position:relative;">

应改为:

<TD ID="EVENT" style="position:relative;">

过去,这种事情给我造成了问题,尽管它在其他浏览器中的ok可能带来问题。

EDIT:在桌子内使用集装箱干.。

    <TD ID="EVENT">

      <div id="container" style="position:relative;">

        <a href="#" id="Menu" style="position:absolute;top:0;right:0;"></a>
        <div id="detail" style="position:absolute;top:0;left:0;width:100%;z-index:10;">
        content
        </div>

      </div>

    </TD>
问题回答

暂无回答




相关问题
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....

jQuery block moving

I wanna move a div block to the top, so I coded like this: CSS part: .movingPart{ margin-top:80px; } jQuery part: $(document).ready(function() { $( #btn ).click(function() { $( .movingPart )....

Private FireFox plugin

I m looking at getting a FireFox plugin developed - but is it possible to create a plugin that is for private use only, so only those I share it with have it and not open to the masses? Need this for ...

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 ...

Cross-browser development

I m developing a web application for a new service, starting from Firefox 3.5. The interface design is tableless, only using divs + CSS & performance-blessed practices. Now, while being ...

Cross browser way of setting IFrame to "about:blank"?

Does anybody know a proper, cross-browser way to "empty" an IFrame? Is "about:blank" recognized without error across all browsers? Is it valid to give an IFrame an empty src?

热门标签