【Android和Iphone-现代css媒体查询】关山初度尘未洗,策马扬鞭再奋蹄!这篇文章主要讲述Android和Iphone-现代css媒体查询相关的知识,希望能为你提供帮助。
Extended css media queries for modern mobile screens
- /* Desktops and laptops ----------- */
- @media only screen
- and ( min-width : 1224px) {
- /* Styles */
- }
- /* Large screens ----------- */
- @media only screen
- and ( min-width : 1824px) {
- /* Styles */
- }
- /* old Smartphones (portrait and landscape) ----------- */
- @media only screen
- and ( min-device-width : 320px)
- and ( max-device-width : 480px) {
- /* Styles */
- }
- /* old Smartphones (landscape) ----------- */
- @media only screen
- and ( min-width : 321px) {
- /* Styles */
- }
- /* old Smartphones (portrait) ----------- */
- @media only screen
- and ( max-width : 320px) {
- /* Styles */
- }
- /* iPhone 4 ----------- */
- @media
- only screen and ( -webkit-min-device-pixel-ratio : 1.5) ,
- only screen and ( min-device-pixel-ratio : 1.5) {
- /* 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 */
- }
- /* android Tablet (portrait and landscape) ----------- */
- @media only screen
- and ( min-device-width : 800px)
- and ( max-device-width : 1280px) {
- /* Styles */
- }
- /* Android Tablet (landscape) ----------- */
- @media only screen
- and ( min-device-width : 800px)
- and ( max-device-width : 1280px)
- and ( orientation : landscape) {
- /* Styles */
- }
- /* Android Tablet (portrait) ----------- */
- @media only screen
- and ( min-device-width : 800px)
- and ( max-device-width : 1280px)
- and ( orientation : portrait) {
- /* Styles */
- }
- /* Desire + Galaxy S2 (portrait and landscape) ----------- */
- @media only screen
- and ( min-device-width : 480px)
- and ( max-device-width : 800px) {
- /* Styles */
- }
- /* Desire + Galaxy S2 (landscape) ----------- */
- @media only screen
- and ( min-device-width : 480px)
- and ( max-device-width : 800px)
- and ( orientation : landscape) {
- /* Styles */
- }
- /* Desire + Galaxy S2 (portrait) ----------- */
- @media only screen
- and ( min-device-width : 480px)
- and ( max-device-width : 800px)
- and ( orientation : portrait) {
- /* Styles */
- }
推荐阅读
- Android MyOverlay扩展覆盖
- .NET-C#-Interop-Excel-Utility/Wrapper类
- Appindicator正面
- 使用AppleScript重新启动Django开发服务器
- 用于检测访问者是否在android设备上的函数
- AppStore从网站自动检测应用程序
- JPA NonflushableQueryRapper公司
- Android(将文本绘制为动态大小的位图)
- 在Android应用程序中加载现有电子邮件并修改其内容