css判断 @media screen and (orientation:portrait){ /*竖屏对应的css*/ } @media screen and (orientation:landscape){ /*横屏对应的css*/ } js判断 <