#indexcar ol{ position:absolute; width: 2012em; } #indexcar ol li{ float:left; text-align:center; } #indexcar ol li a.img{ display:block; text-align:center; font-size:0px;} #indexcar ol li a.img img{ margin:auto; border:1px solid #d6d6d6; padding:2px; background:#fff;} #indexcar ol li a img{max-width:176px; width: expression(this.width >176 && this.width > this.height ? 176px : 'auto';); max-height:143px; height: expresion(this.height > 143 ? 143px : 'auto';); }
图片上下左右居中等比缩放
最新推荐文章于 2021-06-24 18:40:28 发布