文库详情-点击展开-细节更改

dev_bj
caishi 5 years ago
parent f1dfb2b4bb
commit 61fe4efb89

@ -100,8 +100,12 @@
});
$(function(){
var height=document.getElementById("private_reason_ul").offsetHeight;
var one=parseInt($("#private_reason_ul").find("li").eq(0).height())+10;
var two=parseInt($("#private_reason_ul").find("li").eq(1).height());
var plus=one+two;
if(parseInt(height)>166){
$("#actionPanel").html('点击展开<i class="iconfont icon-xiajiantou color-blue font-14 ml5"></i>');
$(".private_reason").css({maxHeight:plus+"px"});
}
})
</script>
Loading…
Cancel
Save