iPhone、iPad默认按钮样式问题

iPhone、iPad默认按钮样式问题
解决方法给按钮元素添加一个-webkit-appearance: none;具体代码
input[type="button"], input[type="submit"], input[type="reset"] {
-webkit-appearance: none;
}
隐藏Safari用户栏
为了更加像原生应用,我们还可以对Safari的用户栏和地址栏进行隐藏,这个叫作standalone模式,加入以下meta进入此模式:
<meta name="apple-mobile-web-app-capable" content="yes" /> 
Icon
iOS所用的icon是png格式的,其提供了apple-touch-icon和apple-touch-icon-precomposed两种icon,使用方式如下:
<link rel="apple-touch-icon" href="/apple-touch-icon.png"/> 
<link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-precomposed.png"/>
4
数字禁止转换为电话号
<meta name=”format-detection” content=”telephone=no” />
5
删除默认的苹果工具栏和菜单栏
<meta name=”apple-mobile-web-app-capable” content=”yes” />
6
控制状态栏显示样式
<meta name=”apple-mobile-web-app-status-bar-style” content=”default” />默认样式<meta name=”apple-mobile-web-app-status-bar-style” content=”black” />黑色<meta name=”apple-mobile-web-app-status-bar-style” content=”black-translucent” />透明

 

转载于:https://my.oschina.net/u/3147332/blog/807056

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值