img图片居中
关键词:clear: both; display: block; margin:auto;
图片居左,居右,居中:
1 /* Alignment */ 2 .alignleft { 3 display: inline; 4 float: left; 5 } 6 .alignright { 7 display: inline; 8 float: right; 9 } 10 .aligncenter { 11 clear: both; 12 display: block; 13 margin:auto; 14 }
连接:http://www.jb51.net/css/134690.html