contant为想获取高度元素class
let heights = document.getElementsByClassName('contant')[0].clientHeight console.log(heights)