“Permintaan Media di CSS” Kode Jawaban

kueri media

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

Kueri Media 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 ukuran sreen yang berbeda

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

cetak kueri media css

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

Permintaan Media di 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

Permintaan Media di CSS

Mobile screen friendly using Media Query
Lazy Llama

Jawaban yang mirip dengan “Permintaan Media di CSS”

Pertanyaan yang mirip dengan “Permintaan Media di CSS”

Lebih banyak jawaban terkait untuk “Permintaan Media di CSS” di CSS

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya