Imatges a la mateixa mida amb jQuery - (Informàtica, jQuery)

function resize_images_singles_blocks() {
    var maxHeight = Math.max.apply(null, $(".container img").map(function () {
        return $(this).height();
    }).get());
    $(".container img").css("height", maxHeight + "px");
}

2 respostes a “Imatges a la mateixa mida amb jQuery”

  1. Lewispoors ha dit:

    Thanks, +
    _________________
    [URL=https://Bangladeshbetapps.site]ক্রীড়া পণ [/URL]

  2. FrbetReike ha dit:

    interesting for a very long time

Deixa un comentari

L'adreça electrònica no es publicarà. Els camps necessaris estan marcats amb *