<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
.container{ width:500px; border:1px solid #ccc; padding:5px; overflow:hidden; height:%}
.left{float:left; background:#FC0; width:%}
.right{ float:right; background:#09C; width:%}
</style>
</head>
<body>
<div><span style="float:left;">sdfdsa</span><span style="float:right; clear:both;">sfsdfsd</span></div>
<div class="container">
<div class="left">左侧</div><div class="right">右侧</div>
</div>
</body>
</html>