🫠
jQuery
■ コンテンツAの高さを取得して、コンテンツBに与える
$(window).on('load', function() {
var height = $(".contentsA").height();
$(".contentsB").css("margin-top", height + 10); //10pxだけ余裕をもたせる
});
$(window).on('load', function() {
var height = $(".contentsA").height();
$(".contentsB").css("margin-top", height + 10); //10pxだけ余裕をもたせる
});
Discussion