wie man die Höhe in jQuery dynamisch einstellt
// Calculate height according to the div width
$(function() {
var myDivWidth = $(".main-div").css("width") + "px";
// the variable will now have our div width
$(".main-div").css("height", myDivWidth)
// Another Way
$(".main-div").css({
"height": myDivWidth
})
})
Programming Is Fun