media query for min-height

前端 未结 6 1721
深忆病人
深忆病人 2021-01-18 02:15

I want to write media query based on screen resolution. My screen resolution height is 768. I wrote media query for this as:

@media(min-height:768px) and (ma         


        
6条回答
  •  Happy的楠姐
    2021-01-18 03:10

    It seems like the issue is that your viewport is not the full resolution of your screen.

    If you set the min-height to something lower, such as 720px, it ought to work.

     @media(min-height:720px) and (max-height:850px)
    {
       .video-contain{
         margin-top:110px;
        }
    
     }
    

提交回复
热议问题