“Bildschirmausrichtung CSS” Code-Antworten

Porträtlandschaft CSS erkennen

 @media screen and (orientation:portrait) { … }
 @media screen and (orientation:landscape) { … }
wvn

Bildschirmausrichtung CSS

@media screen and (min-width: 0px) and (max-width: 1204px) and (orientation: landscape) {
  html {
    transform: rotate(-90deg);
    transform-origin: left top;
    width: 100vh;
    overflow-x: hidden;
    position: absolute;
    top: 100%;
    left: 0;
  }
}
Prickly Penguin

CSS -Geräteorientierung

/* For portrait, we want the tool bar on top */

@media screen and (orientation: portrait) {
  #toolbar {
    width: 100%;
  }
}

/* For landscape, we want the tool bar stick on the left */

@media screen and (orientation: landscape) {
  #toolbar {
    position: fixed;
    width: 2.65em;
    height: 100%;
  }

  p {
    margin-left: 2em;
  }

  li + li {
    margin-top: .5em;
  }
}
Disturbed Dunlin

Mediaquery for Portrate

@media (orientation: portrait) {
  body {
    flex-direction: column;
  }
}
Mehrshad Farzaneh

CSS -Orientierungen

@media (orientation: landscape) and (hover: none) and (pointer: coarse) {
/* your CSS to target only landscape mobile users */
}
Healthy Horse

Ähnliche Antworten wie “Bildschirmausrichtung CSS”

Fragen ähnlich wie “Bildschirmausrichtung CSS”

Weitere verwandte Antworten zu “Bildschirmausrichtung CSS” auf CSS

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen