Authored by liuyue

网销列表图片显示

... ... @@ -101,7 +101,8 @@ var g = new common.grid({
name: 'picImgUrl',
render: function(item) {
if (item.picImgUrl) {
return '<a target="_blank" href="' + item.productUrl + '"><img src="' + item.picImgUrl + '" width="100" height="60"></a>';
return '<a class="list-img" target="_blank" href="' + item.productUrl + '">' +
'<img src="' + item.picImgUrl + '"></a>';
} else {
return '';
}
... ...
... ... @@ -2,6 +2,21 @@
border-top: 1px solid #e7e7e7;
}
.list-img {
display: block;
width: 78px;
height: 78px;
line-height: 78px;
font-size: 0;
text-align: center;
img {
vertical-align: middle;
max-width: 100%;
max-height: 100%;
}
}
.red {
color: red;
font-family: bold;
... ...