media query for min-height
问题 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 (max-height:850px) { .video-contain{ margin-top:110px; } } My above media query is not working.margin-top is not set before. I wrote media query based for screen resolution but not browser height. 回答1: Use: @media screen and ( min-width: 850px ) and ( max-height: 768px ) { .video-contain{ margin-top:110px; } } NOTE : Always use max-width