右侧固定宽度,左侧自适应的CSS写法

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style>
.left_div{ float:left; margin-right:-220px; width:100%}
.in_left{ margin-right:220px; background:#ccc; font:bold 24px/250px verdana; color:#072d84}
.right_div{ float:right; background:#6699FF; width:216px; font:bold 16px/500px verdana; vertical-align:top}
</style>
</head>

<body>
<div class="left_div">
<div class="in_left"><a href="http://www.yohia.com">yohia</a></div>
</div>
<div class="right_div"><a href="http://www.yohia.com">yohia</a></div>

</body>
</html>

  网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)