如果在其中一个插入图片
如果在其中一个插入图片 怎么移动图片 我试过好几个 都没成功 用浮动没效果
图片怎么居中
<!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>
body{ margin:0; padding:0; font-size:30px; font-weight:bold}
div{ text-align:center; line-height:50px}
.head{ height:100px;background:#9CF}
.left{ width:20%; height:600px; background:#ccc; float:left}
.main{margin:0 20%;height:600px; background:#9CC }
.right{ width:20%; height:600px;background:#FCC; float:right}
.footer{ height:50px; background:#9F9; clear:both}
.ai{float:bottom;
</style>
</head>
<body>
<div class="head">head</div>
<div class="left">
<img class="ai" src="http://m.qpic.cn/psb?/V13f1NaB1N5mBQ/kggrTpqZBn4SEa7YGAxxhpNZdfeOPTvhPvJkJAZAHPQ!/b/dEMBAAAAAAAA&bo=vgC.AAAAAAACFzM!&rf=viewer_4"/>
</div>
<div class="right">right</div>
<div class="main">main</div>
<div class="footer">footer</div>
</body>
</html>