How do I handle using getBoundingClientRect to tell if in viewport when using something other than 100% height?

前端 未结 0 1587
無奈伤痛
無奈伤痛 2020-12-02 23:18

I have the following code...

#header{
    height:64px;
    width:100%;
    background-color: #bb0000;
}
#wrapper{
    height:calc( 100% - 64px );
    /*height         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题