如何去掉图片的白边

2016-07-07 16:18 来源:www.chinab4c.com 作者:ecshop专家

/*----- goods_info -----*/
#goods_info{width:742px; overflow:hidden; zoom:1;}
#goods_info h1{height:30px; line-height:30px; font-size:14px; color:#3366CC; margin-bottom:8px; text-align:left; border-bottom:1px #e4e4e4 dashed;}
#goods_info .img_info{width:312px; float:left;}
#goods_info .img_info .pic{width:310px; height:310px; overflow:hidden; border:1px solid #E4E4E4; text-align:center;}
#goods_info .img_info .pic a{width:310px; height:310px; display:block;}
#goods_info .text_info{width:400px; padding:0 10px 0 15px; float:left; font-size:13px;}
#goods_info .text_info .itemBtnList{display:block; padding:10px 0; }
#goods_info .text_info .itemBtnList a:hover{color:#000;}
#goods_info .text_info .itemBtnList a{height:31px; display:inline-block; margin-right:10px; float:left; line-height:31px; color:#FF6600;height:31px; line-height:31px;}
#goods_info .text_info label{margin-left:27px;}

1.jpg (53.57 KB)

1.jpg


回答:
在模板里为图片加个高度和宽度使其充满,或在后台把缩略的高度宽和模板的一致也行,推荐后一种方法