“Medienabfrage in CSS” Code-Antworten

Medienabfrage

@media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;
  }
}
Collared Lizard

CSS -Medienabfrage

/* BOOSTRAP MEDIA BREAKPOINTS */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {  
  .selector {
  	background-color:#f00;
  }
}
/* Medium devices (tablets, 768px and up) The navbar toggle appears at this breakpoint */
@media (min-width: 768px) {}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {}
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {}
gtamborero

CSS unterschiedliche Sreen -Größe

/* For Mobile */
@media screen and (max-width: 540px) {
    .view {
        width: 400px;
    }
}

/* For Tablets */
@media screen and (min-width: 540px) and (max-width: 780px) {
    .view {
        width: 600px;
    }
}
Foolish Fowl

Printmedien -Abfrage CSS

@media print { 
 /* All your print styles go here */
 #header, #footer, #nav { display: none !important; } 
}
Disturbed Dove

Medienabfrage in CSS

/* So me write a media query like this */
@media screen and (min-width:746px){
  /* here we will add the stles we want
  for the screen with min -width of 746 px*/
}
/* we can also use something like*/
@media print and (min-width:1024px){
}
/* Here print is for what we will see if we print whats on the screen*/
ujjwal sotra

Medienabfrage in CSS

Mobile screen friendly using Media Query
Lazy Llama

Ähnliche Antworten wie “Medienabfrage in CSS”

Fragen ähnlich wie “Medienabfrage in CSS”

Weitere verwandte Antworten zu “Medienabfrage in CSS” auf CSS

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen