Authored by liuyue

网销列表图片显示

... ... @@ -107,7 +107,7 @@ 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 '';
}
... ...
... ... @@ -7,6 +7,21 @@
font-family: bold;
}
.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%;
}
}
input[type=date], input[type=time], input[type=datetime-local], input[type=month] {
line-height: 0 !important;
}
... ...