2014-03-13 6 views

답변

8

확인이 Common CSS Media Queries Break Points

/*------------------------------------------ 
    Responsive Grid Media Queries - 1280, 1024, 768, 480 
    1280-1024 - desktop (default grid) 
    1024-768 - tablet landscape 
    768-480  - tablet 
    480-less - phone landscape & smaller 
--------------------------------------------*/ 
@media all and (min-width: 1024px) and (max-width: 1280px) { } 

@media all and (min-width: 768px) and (max-width: 1024px) { } 

@media all and (min-width: 480px) and (max-width: 768px) { } 

@media all and (max-width: 480px) { } 


/* Portrait */ 
@media screen and (orientation:portrait) { /* Portrait styles here */ } 
/* Landscape */ 
@media screen and (orientation:landscape) { /* Landscape styles here */ } 


/* CSS for iPhone, iPad, and Retina Displays */ 

/* Non-Retina */ 
@media screen and (-webkit-max-device-pixel-ratio: 1) { 
} 

/* Retina */ 
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), 
only screen and (-o-min-device-pixel-ratio: 3/2), 
only screen and (min--moz-device-pixel-ratio: 1.5), 
only screen and (min-device-pixel-ratio: 1.5) { 
} 

/* iPhone Portrait */ 
@media screen and (max-device-width: 480px) and (orientation:portrait) { 
} 

/* iPhone Landscape */ 
@media screen and (max-device-width: 480px) and (orientation:landscape) { 
} 

/* iPad Portrait */ 
@media screen and (min-device-width: 481px) and (orientation:portrait) { 
} 

/* iPad Landscape */ 
@media screen and (min-device-width: 481px) and (orientation:landscape) { 
} 
+0

나는 위의 CSS를 사용하고 있지만 내 웹 사이트에 버튼 스타일을 다음되지 않습니다 귀하의 질문에 관해서는 http://getbootstrap.com/getting-started/

, 당신은이 예제를 가지고있다. 어떤 제안? –

+0

더 나은 아이디어를 얻으려면 jsfiddle을 제공해주십시오. – Sender

+0

어제 검색을 몇 번했는데 asp.net 버튼을 사용하지 마십시오. 어떤 제안이나 부트 스트랩 3을 계속해야합니까? 많은 감사 –

0

내가보기 엔 부트 스트랩을 사용하여 권 해드립니다. 신속한 개발. 또한 문서화가 매우 완벽합니다.

/*Anything outside of media queries is for MOBILE 
    This is Mobile first approach. 
*/ 

/* Small devices (tablets, 768px and up) */ 
@media (min-width: 768px) { ... } 

/* Medium devices (desktops, 992px and up) */ 
@media (min-width: 992px) { ... } 

/* Large devices (large desktops, 1200px and up) */ 
@media (min-width: 1200px) { ... } 
관련 문제