“Consulta de mídia no CSS” Respostas de código

Consulta de mídia

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

Consulta de mídia CSS

/* 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 Diferente tamanho de tela

/* 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

Print Media Consulta CSS

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

Consulta de mídia no 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

Consulta de mídia no CSS

Mobile screen friendly using Media Query
Lazy Llama

Respostas semelhantes a “Consulta de mídia no CSS”

Perguntas semelhantes a “Consulta de mídia no CSS”

Mais respostas relacionadas para “Consulta de mídia no CSS” em CSS

Procure respostas de código populares por idioma

Procurar outros idiomas de código