9 lines
239 B
JavaScript
9 lines
239 B
JavaScript
|
|
$(document).ready(function() {
|
|
$("img").each(function(idx, elm){
|
|
$(elm).css("margin-bottom", elm.height * -0.333);
|
|
}).on("load", function(e){
|
|
$(e.target).css("margin-bottom", e.target.height * -0.333);
|
|
});
|
|
});
|