img标签的水平居中、靠左、靠右
2020-04-28 21:07:38
680次阅读
0个评论
//水平靠左
.alignleft {
display: inline;
float: left;
}
<img src="" class="alingleft">
//水平靠右
.alignright {
display: inline;
float: right;
}
<img src="" class="alignright">
//水平居中
.aligncenter {
clear: both;
display: block;
margin: auto;
}
<img src="" class="aligncenter">
00