css多个图片两端对齐

c1586 的分享

关于css多个图片两端对齐的问题解答

css多个图片两端对齐 三联

  CSS样式代码如下:

  *{margin:0;padding:0}

  ul{list-style:none;}

  .box{

  font-size:0;

  letter-spacing:-0.5em;

  text-align:justify;

  text-justify:distribute-all-lines; /* for ie */

  width:302px;

  margin:100px auto;

  padding:0 13px;

  border:2px solid #ccc;

  background:#f0f0f0;

  }

  .box:after{

  content:"";

  height:0;

  width:100%;

  display:inline-block;

  overflow:hidden;

  }

  .box li{

  display:inline-block;

  vertical-align:top;

  letter-spacing:normal;

  *display:inline;

  *zoom:1;

  width:90px;

  margin:13px 0;

  height:120px;

  background:#3b5998;

 

  }

TA发布的帖子

590

收藏

589