매체

2017-11-28 8 views
0

부트 스트랩 3 개 미디어 중단있다 중단 점매체

I 단지 모바일이 아닌 휴대 제 최소 폭 및 최대 폭에서 동일하게 기술 된 이유를 이해 해달라고
/*========== Mobile First Method ==========*/ 

/* Custom, iPhone Retina */ 
@media only screen and (min-width : 320px) { 

} 

/* Extra Small Devices, Phones */ 
@media only screen and (min-width : 480px) { 

} 

/* Small Devices, Tablets */ 
@media only screen and (min-width : 768px) { 

} 

/* Medium Devices, Desktops */ 
@media only screen and (min-width : 992px) { 

} 

/* Large Devices, Wide Screens */ 
@media only screen and (min-width : 1200px) { 

} 

/*========== Non-Mobile First Method ==========*/ 

/* Large Devices, Wide Screens */ 
@media only screen and (max-width : 1200px) { 

} 

/* Medium Devices, Desktops */ 
@media only screen and (max-width : 992px) { 

} 

/* Small Devices, Tablets */ 
@media only screen and (max-width : 768px) { 

} 

/* Extra Small Devices, Phones */ 
@media only screen and (max-width : 480px) { 

} 

/* Custom, iPhone Retina */ 
@media only screen and (max-width : 320px) { 

} 

. 예를 들어 태블릿의 최소 너비 = 768px를 의미하므로 모든 너비가 768을 초과하고 태블릿의 최대 너비가 768인데 이는 < 768px를 의미합니다. 태블릿의 모바일 우선 표시 = 768-991px 비 모바일 상태에서 481-768

답변

0

부트 스트랩 일반적으로 모든 미디어 쿼리는 범위와 함께 폭 브레이크 포인트를 정의합니다. 이 경우에, 당신이 보여준 CSS에서, 같은 헤더 주석을 가진 중단 점은 동의어입니다.

당신은이 같은 두 가지 옵션 (예를에 대한 ) 더 나은 정의 할 수 있습니다 :

/* Extra Small Devices, Phones */ 
@media only screen and (max-width: 480px) and (min-width: 321px) { } 

또한 화면 위치 또는 다른 매개 변수를 지정하는 또 다른 (그리고있는 posibility을 연결하는) 선택기를 사용할 수 있습니다. 여기서이 일부이다 :

  • 높이
  • 방향
  • 컬러 인덱스
  • 단색
  • 해상도
  • 주사
  • 그리드