Orientación portrait
Publicado por eduardo (8 intervenciones) el 01/01/2019 10:11:43
Algún código CSS o JS para que la orientación de una pagina web sea siempre portrait en un movil o en una tablet.
Valora esta pregunta


0
if (window.innerHeight > window.innerWidth) {
portrait = true;
} else {
portrait = false;
}
@media only screen and (height > width) { . . . }
@media only screen and (width > height) { . . . }
@media screen and (orientation:portrait) { . . . }
@media screen and (orientation:landscape) { . . . }