这是我的代码。请帮助使其居中居中,并且所有图像尺寸都不相同
CSS:
body {
margin: 0px;
}
.wrapper {
text-align:center;
width: 100%;
height: 100%;
position: relative;
z-index: 21
}
.wrapper img {
display: table-cell;
vertical-align: middle;
}
HTML:
<div class="wrapper">
<img src="http://static.desktopnexus.com/thumbnails/196734-bigthumbnail.jpg" />
</div>