垂直居中,不知道对不对
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>父元素高度确定的多行文本</title>
<style>
.wrap{height:300px;background:#ccc}
.setimg{height:100%;
position:absolute;
}
</style>
</head>
<body>
<!--下面是代码任务区-->
<table class="setimg"><tbody><tr><td>
<div>
<img src="http://img1.sycdn.imooc.com//54ffac56000169c001840181.jpg" title="害羞的小女生"/>
</div>
</td></tr></tbody></table>
</body>
</html>