在我的页面中,我有一个div,其中width是,固定的是,height是,而不是固定的。当我上传500 X 300图像时,它将正确地位于div内,即width>height。如果我用10000 X 3000上传图像,那么图像的高度就会小于500×300的图像,即使第二个图像的高度更高。我试着用固定的div高度重新定位.如果div内的图像高度在放进di
未定义的结果$(document).ready(function() { var test = $(this).parentthis", test);});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js">