CSS Responsive Web Design: Do min-width and max-width change between landscape and portrait on tablets?

StackOverflow https://stackoverflow.com/questions/18730152

문제

I am modifying a website's CSS to make it responsive. I'm ready to start throwing media queries all over the place, but something occurred to me:

When you turn a tablet to switch it from portrait to landscape mode or vice versa, does the 'width' attribute that media queries run off of ("min-width", "max-width", etc) change?

This'll help me figure out whether I need to write twice as many sets of just how many sets of variant CSS I need to write.

도움이 되었습니까?

해결책

Yes, it changes. The browser will always render content according to the display width, unless you've told it not to.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top