2022-01-20から1日間の記事一覧

Slickでロード時に要素の高さをそろえるscript

<script> window.addEventListener('load', function() { var maxHeight = 0; $('対象のクラスやID').each(function(idx, elem) { var height = $(elem).height(); if(maxHeight < height) { maxHeight = height; } }); $('対象のクラスやID').height(maxHeight); })</script>…