html,body {width:100%; height:100%} img.ct {position:absolute; width:300px; height:200px; left:50%; top:50%; margin-left:-150px; margin-top:-100px}
css3怎么让img上下左右居中
<style> html,body {width:100%; height:100%} img.ct {position:absolute; width:300px; height:200px; left:50%; top:50%; margin-left:-150px; margin-top:-100px}</style><img class=ct src="图片路径自己加"/>2016-11-16