thumbnail used as temporary background while loading main image
This commit is contained in:
@@ -1000,6 +1000,7 @@ function showbigimage(i) {
|
|||||||
$('#imagesingle').css('width','auto');
|
$('#imagesingle').css('width','auto');
|
||||||
$('#imagesingle').css('height',height);
|
$('#imagesingle').css('height',height);
|
||||||
}
|
}
|
||||||
|
$('#imagesingle').css('background-image','url("_tn/tn_'+encodeURIComponent(imagelist[i])+'.jpg")');
|
||||||
}
|
}
|
||||||
$('#imagecontainer').css('height',height);
|
$('#imagecontainer').css('height',height);
|
||||||
|
|
||||||
|
|||||||
@@ -189,6 +189,8 @@ margin-left: auto;
|
|||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
padding-left: 0px;
|
padding-left: 0px;
|
||||||
padding-right: 0px;
|
padding-right: 0px;
|
||||||
|
background-size: contain;
|
||||||
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
#imagebig {
|
#imagebig {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user