css position:fixed funktioniert nicht im ie
Ich habe ein div, welches position fixiert ist, in das ich einen div mit position absolute....
Es ist absolut positionierten div-Element arbeiten..... Aber position:fixed funktioniert nicht im ie........
Hoffe, Sie verstehen...
HTML
<div class="container">
<div class="cont_left">
<div style="position:relative">
<div id="nav">
<div style="display: block;" class="menu"> <a href="#">
about
</a>
</div>
<div style="display: block;" class="menu"> <a href="#">
services
</a>
</div>
......
</div>
</div></div></div>
CSS
.container{
width:100%;
float:left;
}
.cont_left{
width:164px;
float:left;
padding:0;
position:fixed;
}
#nav{
width:164px;
float:left;
padding:0;
list-style:none;
margin:58px 0 46px 0;
position:absolute;
top:0;
left:0;
}
- IE6 nehme ich an? IE7 implementiert
position:fixed
richtig. Der IE6 nicht versteht position:relative. Kehrt auf position:static - ich habe auch von fast von Websites, die einige Projekt haben ein problem, wenn der IE..ich verwende FF zu beheben mein problem..
Du musst angemeldet sein, um einen Kommentar abzugeben.
könnten Sie versuchen, diese: http://ryanfait.com/position-fixed-ie6/
Fügen Sie einfach
<!doctype html>
an den Anfang Ihrer html -Wenn Sie XHTML statt HTML dann position:fixed ist definitiv Arbeit.
Beim starten der HTML-Seite, die Sie Hinzugefügt haben, um die