//样式重置,因为会获取到上次设置的样式
$(‘#releaseData‘).css({
"height": "auto",
"bottom": "auto"
});
//获取底部位置
var bottom=$("#releaseData").css("bottom");
if (bottom.toString().indexOf("-") == 0) {
$(‘#releaseData‘).css({
"overflow-y": "auto",
"height": $(window).height() - 100 + "px",
"top": "30px",
}
);
}
else {
$(‘#releaseData‘).css({
"top": "30%",
"height": "auto"
}
);
}