如果代码流程是这样的,它应该可以完美运行
.wrapper{position:relative; width:100%; overflow:auto}
.descrptn{display:inline-block; background:#fbffe2; float:left; margin-left:10px; width:60%}
.right{display:inline-block; margin:0 10px; float:right}
演示
根据原始码更新
您需要正确订购 div,这意味着所有子 div 都应该有一个父 div。
HTML
<div class="wrapper">
<div class="header">
<a href="www.one.lt"> <img border="0" src="http://www.gvcdigital.co.uk/images/graphic/header.png" width="985" height="96" alt="header" title="DigiSpot eBay store" /></a>
</div>
<div class="nav_menu">
<img border="0" src="http://www.gvcdigital.co.uk/images/graphic/meniu.png" alt="DigiSpot meniu" width="985" height="41" usemap="#mapas" />
<map name="mapas">
<area shape="rect" coords="56,0,0,41" href="www.one.lt" alt="DigiSpot eBay store home" title="DigiSpot eBay store home">
<area shape="rect" coords="539,0,400,41" href="www.one.lt" alt="About Digispot" title="About DigiSpot">
<area shape="rect" coords="699,0,539,41" href="www.one.lt" alt="Delivery information" title="Delivery information">
<area shape="rect" coords="845,0,699,41" href="www.one.lt" alt="Returns information" title="Returns information">
<area shape="rect" coords="985,0,845,41" href="www.one.lt" alt="Contacts information" title="Contacts information">
</map>
</div>
<div class="desc"><img border="0" src="http://www.gvcdigital.co.uk/images/graphic/description.png" width="232" height="81"></div>
<!--Contaent starts-->
<div class="content">
<div class="left_panel">Lorem ipsum .</div>
<div class="right_panel">
<div style="text-align:center; width: 324px; color: #ffffff; background-color:#6b8861; font-size : 34px;">[[Title]]</div>
<div style="border:1px dotted #6b8861; text-align:center; width: 324px; background-color:#ffffff;">[[Picture1]]</div>
</div>
</div>
<!--Contaent ends-->
<div class="footer"><img border="0" src="graphic/buttom.png" width="524" height="42"></div>
</div>
CSS
body {
color: #25670c;
margin: 0 0 0 0;
padding: 0 0 0 0;
font-family : Times New Roman;
font-size : 14px;
text-align: center;
}
.wrapper{width:1000px; margin:0 auto}
.header{height: 96px; width: 985px; margin: 0 auto;}
.nav-menu{
height: 41px; width: 985px; margin: 0 auto;
}
.desc{width: 985px; height:81px; text-align: center; background-color:#d6d6a4;margin: 0 auto;}
.content{position:relative; width: 985px; overflow:auto}
.left_panel{ background:#fbffe2; float:left; margin-left:20px; width:600px; text-align:left}
.right_panel {
text-align: left;
background-color: #d6d6a4;
margin: 0 auto; float:right
}
.footer {
text-align: center;
width: 985px;
background-color: #d6d6a4;
margin: 0 auto;
}
演示更新