Html IE6/7右浮动错误
IE6/7未正确显示左侧。我不想为内容设置宽度,你知道IE的修复程序吗? 如果我将内容的内部元素向左浮动,则在重新排列元素后是正确的, 但我想让浮动元素向右移动 请告诉我你的解决办法Html IE6/7右浮动错误,html,css,internet-explorer,Html,Css,Internet Explorer,IE6/7未正确显示左侧。我不想为内容设置宽度,你知道IE的修复程序吗? 如果我将内容的内部元素向左浮动,则在重新排列元素后是正确的, 但我想让浮动元素向右移动 请告诉我你的解决办法 最好的问候不太确定,但从我的头顶。。。试试这个 您可以添加这些并查看 #container { background-color: #CCC; height:100px; } .clear-fix { overflow: hidden; _height:1%; } #navigation { flo
最好的问候不太确定,但从我的头顶。。。试试这个 您可以添加这些并查看
#container {
background-color: #CCC;
height:100px;
}
.clear-fix
{
overflow: hidden;
_height:1%;
}
#navigation {
float: right;
margin-right: 10px;
background-color:Aqua;
}
#content {
float: left;
margin-left: 10px;
background-color:Orange;
}
#content div{display:inline; float:right;}
#content a {float:right; display:inline;margin-right:5px;}
<body style="direction:rtl">
<div id="container" class="clear-fix">
<div id="navigation"><a href="#">hi there ddd ddd</a></div>
<div id="content">
<div>somthing else</div>
<a target="_blank" href="#" ><img src="anything.jpg" style="width:32px; height:32px"/></a>
<a target="_blank" href="#" ><img src="anything.jpg" style="width:32px; height:32px" /></a>
</div>
</div>
</body>
#container{
width:[your width];
}
#content{
display: inline-block;
}