texto tamaño style personalizar para form examples estilos cajas borde bootstrap ajustar css3 responsive-design media-queries

css3 - tamaño - personalizar contact form 7 css



Cuáles son los mejores rangos de ancho para consultas de medios (3)

¿Alguien me puede avisar cuáles son los mejores rangos de ancho para detectar consultas de medios en un diseño receptivo?

Me gustaría cubrir todos los monitores de escritorio / computadora portátil (con una orientación) en 4 consultas de medios, pero no sé si es posible, por ejemplo: monitores pequeños, monitores medianos, monitores grandes y extra grandes.

Por ejemplo en este código

/* Desktops and laptops ----------- */ @media only screen and (min-width : 1224px) {} /* Large screens ----------- */ @media only screen and (min-width : 1824px) {}

Creo que todavía tenemos que conectar los soportes de escritorio y portátiles a tres medios secundarios tan pequeños (como 13 "a 14 portátiles), medios (como 15 a 17) y grandes (más de 22 #). Sé que la resolución del navegador es diferente que las resoluciones de pantalla, pero digamos que tenemos navegadores en modo de pantalla completa en todos los formatos.

Gracias por tu ayuda


La mejor opción es apuntar a las características, no a los dispositivos, a menos que sea necesario, arrancar bien y extenderse en sus puntos de ruptura, por ejemplo, dirigirse a la densidad de píxeles y pantallas más grandes por encima de 1920


Prueba este con pantalla Retina

/* Smartphones (portrait and landscape) ----------- */ @media only screen and (min-device-width : 320px) and (max-device-width : 480px) { /* Styles */ } /* Smartphones (landscape) ----------- */ @media only screen and (min-width : 321px) { /* Styles */ } /* Smartphones (portrait) ----------- */ @media only screen and (max-width : 320px) { /* Styles */ } /* iPads (portrait and landscape) ----------- */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) { /* Styles */ } /* iPads (landscape) ----------- */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) { /* Styles */ } /* iPads (portrait) ----------- */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) { /* Styles */ } /* Desktops and laptops ----------- */ @media only screen and (min-width : 1224px) { /* Styles */ } /* Large screens ----------- */ @media only screen and (min-width : 1824px) { /* Styles */ } /* iPhone 4 ----------- */ @media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) { /* Styles */ }

Actualizar

/* Smartphones (portrait and landscape) ----------- */ @media only screen and (min-device-width: 320px) and (max-device-width: 480px) { /* Styles */ } /* Smartphones (landscape) ----------- */ @media only screen and (min-width: 321px) { /* Styles */ } /* Smartphones (portrait) ----------- */ @media only screen and (max-width: 320px) { /* Styles */ } /* iPads (portrait and landscape) ----------- */ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) { /* Styles */ } /* iPads (landscape) ----------- */ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) { /* Styles */ } /* iPads (portrait) ----------- */ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) { /* Styles */ } /* iPad 3 (landscape) ----------- */ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) { /* Styles */ } /* iPad 3 (portrait) ----------- */ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) { /* Styles */ } /* Desktops and laptops ----------- */ @media only screen and (min-width: 1224px) { /* Styles */ } /* Large screens ----------- */ @media only screen and (min-width: 1824px) { /* Styles */ } /* iPhone 4 (landscape) ----------- */ @media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) { /* Styles */ } /* iPhone 4 (portrait) ----------- */ @media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) { /* Styles */ } /* iPhone 5 (landscape) ----------- */ @media only screen and (min-device-width: 320px) and (max-device-height: 568px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2) { /* Styles */ } /* iPhone 5 (portrait) ----------- */ @media only screen and (min-device-width: 320px) and (max-device-height: 568px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2) { /* Styles */ } /* iPhone 6 (landscape) ----------- */ @media only screen and (min-device-width: 375px) and (max-device-height: 667px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2) { /* Styles */ } /* iPhone 6 (portrait) ----------- */ @media only screen and (min-device-width: 375px) and (max-device-height: 667px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2) { /* Styles */ } /* iPhone 6+ (landscape) ----------- */ @media only screen and (min-device-width: 414px) and (max-device-height: 736px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2) { /* Styles */ } /* iPhone 6+ (portrait) ----------- */ @media only screen and (min-device-width: 414px) and (max-device-height: 736px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2) { /* Styles */ } /* Samsung Galaxy S3 (landscape) ----------- */ @media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2) { /* Styles */ } /* Samsung Galaxy S3 (portrait) ----------- */ @media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2) { /* Styles */ } /* Samsung Galaxy S4 (landscape) ----------- */ @media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3) { /* Styles */ } /* Samsung Galaxy S4 (portrait) ----------- */ @media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3) { /* Styles */ } /* Samsung Galaxy S5 (landscape) ----------- */ @media only screen and (min-device-width: 360px) and (max-device-height: 640px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3) { /* Styles */ } /* Samsung Galaxy S5 (portrait) ----------- */ @media only screen and (min-device-width: 360px) and (max-device-height: 640px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3) { /* Styles */ }


Puede ver aquí una lista más larga de tamaños de pantalla y consultas de medios respectivas.

O acceda a las consultas de medios de Bootstrap :

/* Large desktop */ @media (min-width: 1200px) { ... } /* Portrait tablet to landscape and desktop */ @media (min-width: 768px) and (max-width: 979px) { ... } /* Landscape phone to portrait tablet */ @media (max-width: 767px) { ... } /* Landscape phones and down */ @media (max-width: 480px) { ... }

Además, es posible que desee echar un vistazo a las consultas de medios de Foundation con la siguiente configuración predeterminada:

// Media Queries $screenSmall: 768px !default; $screenMedium: 1279px !default; $screenXlarge: 1441px !default;