<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
.ContentMiddle img {
vertical-align: middle;
}
</style>
</head>
<body>
<div class="ContentMiddle">
<span>垂直居中</span>
<img src="images/1.gif" />
<span>垂直居中</span>
<img src="images/2.gif" />
<span>垂直居中</span>
</div>
</body>
</html>
效果如圖: