[スマホ]縦向き・横向き切替のCSS表記[CSS3]

スマホの縦横でCSSを切り替えたい時用

http://www.db.gs/article/255889697.html

 

 

/*縦向き*/
@media only screen and (orientation : portrait) {
.class {
width:480px;
height:44px;
}
}

/*横向き*/
@media only screen and (orientation : landscape) {
.class {
width:480px;
height:88px;
}
}