English 中文(简体)
职位: 相对和超支: 问题,但不能使用立场: :
原标题:position:relative and overflow:auto problem but cannot use position:relative on containing element !! :-(

我有一页,我需要使用多流:auto in html 和对口单位,因为我有以下立场:固定要素,我必须使用这些要素:IEE的绝对立场(因此,多流:auto要摆脱E bug)。

这一界限是分类的。

但现在我的问题是我还有其他立场:我的网页上的相对内容。 当我把*html说到时,即体积过量:汽车;}由于另一个电流:auto和位置:相互关系,这些相对定位的元素在电算盘中被固定下来。

我被告知,在一般情况下,这一ug子的环绕工作包括立场:在“含蓄元素”中的相对性。 但是,这是不可能的,因为我包含的内容需要一种立场:在独立实体中,无法使固定要素发挥作用。

我如何解决这个问题?


* html , body { height:100%; overflow : auto;}
* body #fixedelement {position:absolute;} /* for IE */

body > #fixedelement {position:fixed;} /*for firefox etc*/

#relative{
    /* I need to use this but putting position:relative to html or body
    seems not possible coz i need #fixedelement to work in IE */
    position:relative;
}

请帮助

问题回答

这里有一小trick,允许你在相对要素内放置绝对成分。 您认为这是有益的。





相关问题
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 ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

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

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签