2013-10-10 68 views

回答

16

只需編寫媒體查詢的風景和肖像模式:

/* Portrait */ 
@media screen and (orientation:portrait) { 
/* Portrait styles */ 
} 
/* Landscape */ 
@media screen and (orientation:landscape) { 
/* Landscape styles */ 
} 

link here

+2

在HTML5 **媒體屏幕** **成爲所有媒體的**,請參閱:http://stackoverflow.com /問題/ 12549267 /媒體都-VS-媒體屏 – jpoppe

相關問題