简单地为横向和纵向模式编写媒体查询:/* Portrait */ @media screen and (orientation:portrait) { /* Portrait styles */ } /* Landscape */ @media screen and (orientation:landscape) { /* Landscape styles */ } 点击此处链接