mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
笔记的高度问题
This commit is contained in:
@@ -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');
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user