笔记的高度问题

This commit is contained in:
daihh
2022-10-18 09:30:03 +08:00
parent a13e4ddd88
commit c181655b8d
2 changed files with 26 additions and 8 deletions

View File

@@ -600,13 +600,19 @@
this.$nextTick(function(){
//let h0=document.getElementById('id_course_player').offsetHeight;
//let h0=document.getElementById('id_course_player').offsetHeight;
let h=$this.$refs.coursePlayer.offsetHeight;
//let h1=$this.$refs.coursePlayer.clientHeight;
///console.log(h0,h,$this.controlHeight,'$this.controlHeight');
//按高度
//解决获取高度不正的问题
if(h>400 && h<500){
h=h+40;
}else if(h>500){
h=h+60;
}
//$this.controlHeight=h-99;
$this.controlHeight=h-95;
console.log(h,$this.controlHeight,'$this.controlHeight');
//console.log(h,$this.controlHeight,'$this.controlHeight');
})
},