CSS: iPhone Custom CSS

CSS媒体查询与响应式设计
本文详细介绍了使用CSS媒体查询实现响应式网页设计的方法,包括针对不同设备和屏幕方向的具体样式调整。通过一系列示例代码展示了如何为iPhone等设备定制布局。

1. [代码][CSS]代码     

<style type="text/css" media="screen">
 
/* iPhone 4
@media only screen and (-webkit-min-device-pixel-ratio:2){
#innerWrap{ width: 650px; }
#container{ width: inherit; }
}
 
@media all and (max-device-width: 480px){
#innerWrap{ width: 650px; }
#container{ width: inherit; }
}http://www.huiyi8.com/lunwenppt/

@media screen and (orientation:portrait) and (min-device-width: 768px) and (max-device-width: 1024px){

#innerWrap{ width: 1024px; border: 0px solid yellow; }
#container{ width: 650px; border: 0px solid violet; }
}​毕业设计答辩ppt
@media screen and (orientation:landscape) and (min-device-width: 768px) and (max-device-width: 1024px){
#innerWrap{ width: 1024px; border: 0px solid yellow; }
#container{ width: 650px; border: 0px solid violet; }
}
*/
 
</style>
<!-- Portrait -->
<link media="only screen and (max-width: 320px)" rel="stylesheet" type="text/css" href="http://kuscinteractive.org/css/nowplaying/iphone_portrait.css"/>
<link rel="stylesheet" media="all and (orientation:portrait)" type="text/css" href="http://kuscinteractive.org/css/nowplaying/portrait.css">
 
<!-- Landscape -->
<link media="only screen and (min-width: 321px)" rel="stylesheet" type="text/css" href="http://kuscinteractive.org/css/nowplaying/iphone_landscape.css"/>
<link media="all and (orientation:landscape)" rel="stylesheet" type="text/css" href="http://kuscinteractive.org/css/nowplaying/landscape.css">
 
<!-- iPhone Retina Display -->
<link media="only screen and (-webkit-min-device-pixel-ratio: 2)" rel="stylesheet" type="text/css" href="http://kuscinteractive.org/css/nowplaying/retina.css" />

转载于:https://www.cnblogs.com/xkzy/p/4087425.html

{ "pages": [{ "path": "pages/Login/Login", "style": { "navigationBarTitleText": "登录", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path": "pages/MainMenu/MainMenu", "style": { "navigationBarTitleText": "主页", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path": "pages/PlayFee/PlayFee", "style": { "navigationBarTitleText": "游玩扣费", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path": "pages/MemberQuery/MemberQuery", "style": { "navigationBarTitleText": "会员查询", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path": "pages/FeeRecord/FeeRecord", "style": { "navigationBarTitleText": "扣费记录", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path": "pages/Setting/Setting", "style": { "navigationBarTitleText": "核销设置", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } },{ "path": "pages/index/index", "style": { "navigationBarTitleText": "uni-app" } }, { "path" : "pages/ProductSale/ProductSale", "style" : { "navigationBarTitleText" : "商品售卖", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path" : "pages/PaymentSettlement/PaymentSettlement", "style" : { "navigationBarTitleText" : "支付结算", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path" : "pages/payment-loading/payment-loading", "style" : { "navigationBarTitleText" : "支付中", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path" : "pages/payment-success/payment-success", "style" : { "navigationBarTitleText" : "支付成功", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path" : "pages/payment-fail/payment-fail", "style" : { "navigationBarTitleText" : "支付失败", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path" : "pages/OrderManagement/OrderManagement", "style" : { "navigationBarTitleText" : "订单管理", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path" : "pages/orderDetail/orderDetail", "style" : { "navigationBarTitleText" : "订单详情", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path" : "pages/refund/refund", "style" : { "navigationBarTitleText" : "订单退款", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path" : "pages/MemberRegistration/MemberRegistration", "style" : { "navigationBarTitleText" : "会员入会", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path" : "pages/MemberManagement/MemberManagement", "style" : { "navigationBarTitleText" : "会员管理", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path" : "pages/MemberDetail/MemberDetail", "style" : { "navigationBarTitleText" : "会员详情", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path" : "pages/MemberEdit/MemberEdit", "style" : { "navigationBarTitleText" : "会员编辑", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path" : "pages/BalanceChange/BalanceChange", "style" : { "navigationBarTitleText" : "余额变更", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }, { "path" : "pages/MemberUpgrade/MemberUpgrade", "style" : { "navigationBarTitleText" : "会员升级", "navigationStyle": "custom" // 关键配置:隐藏当前页面默认标题栏 } }], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "uni-app", "navigationBarBackgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8", "app-plus": { "background": "#efeff4" } } } 顶部不要到手机时间那边
09-01
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值