61,112
社区成员
发帖
与我相关
我的任务
分享
.div{
text-align:center;
}
.div p {
text-align:left;
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>image.div</title>
<style type="text/css">
#container{border:3px solid blue;width:800px;text-align:center;vertical-align:middle;}
#container image{border:1px solid blue;}
#container div{float:left;}
</style>
</head>
<body>
<div id="container">
<div id="inner">文字描述文字描述文字描述</div>
<img src="javascript:;" width="80" height="60" alt="Image From KunLun" />
<img src="javascript:;" width="80" height="60" alt="Image From KunLun" />
<img src="javascript:;" width="80" height="60" alt="Image From KunLun" />
<img src="javascript:;" width="80" height="60" alt="Image From KunLun" />
</div>
<div id="extra">
<img src="javascript:;" width="80" height="60" alt="Image From KunLun" />
</div>
</body>
</html>
.div img{float:left;}