在模板编辑状态下,对/archive/show_products.html文件里的代码进行修改:
#image_box {
margin:0 auto;
width:326px;
height:90%;
/*非IE的主流浏览器识别的垂直居中的方法*/
display: table-cell;
vertical-align:middle;
/*设置水平居中*/
text-align:center;
/* 针对IE的Hack */
*display: block;
*font-size: 139px;/*约为高度的0.873,200*0.873 约为175*/
*font-family:Arial;/*防止非utf-8引起的hack失效问题,如gbk编码*/
padding:5px;
border:1px solid #ccc;
_border:none;
background:url({$skin_path}/images/pic_bg.gif) left top no-repeat;
border-right:1px solid #white;
border-bottom:1px solid #white;
}
padding:0px;
border:1px solid #ccc;
border-right:1px solid #ccc;
border-bottom:1px solid #ccc;
针对上述4行代码,A、把5px改为0px,使原先看上去又粗又宽又丑的灰色内边距线没有了;B、把border-right和border-bottome的#white改为与border一样的颜色#ccc,使原先看上又粗又宽又丑的边线变成了1px的#ccc颜色细线;
C、在完成步骤A后,直接用/* */把border-right和border-bottome括起来,也能使原先看上又粗又宽又丑的边线变成了1px的#ccc颜色细线。
.p_info {height:40px;line-height:40px;padding-left:20px;background:url({$skin_path}/images/comment.gif) left center no-repeat;border-bottom:1px dotted #ccc;}
修改padding-left的px值可以调整图片下方“产品介绍”及产品介绍左侧的黄色“小图标”的距离。