美文网首页
移动端总结

移动端总结

作者: 帅气的刘小二 | 来源:发表于2016-10-20 17:04 被阅读0次

1、常用的meta标签

<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />

<meta name="apple-mobile-web-app-capable" content="yes">

<meta name="format-detection" content="telephone=no">

<meta http-equiv="Cache-Control" content="no-cache" />

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />


<meta name="x5-fullscreen" content="true">

<meta name="x5-orientation" content="portrait">

<meta name="x5-orientation" content="landscape">

<meta name="x5-page-mode" content="app">


<meta name="full-screen" content="yes">

<meta name="screen-orientation" content="portrait">

<meta name="screen-orientation" content="landscape">

<meta name="browsermode" content="application">
2、IOS的H5页面滚动不流畅解决方案
在滚动层的外面的class添加-webkit-overflow-scrolling : touch;
3.去触摸元素时出现半透明灰色遮罩
-webkit-tap-highlight-color:rgba(255,255,255,0)
4、IOS 默认输入框内阴影重置
{ border: 0; -webkit-appearance: none; }
5、旋转屏幕时,字体大小调整的问题
html, body, form, fieldset, p, div, h1, h2, h3, h4, h5, h6 { -webkit-text-size-adjust:100%;}
6、改变placeholder的样式
input::-webkit-input-placeholder{color:#000;}
input:focus::-webkit-input-placeholder{color:#000;}
textarea::-webkit-input-placeholder {text-align:left}
7、禁止选中
E { -webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;}
8、IOS禁止保存或拷贝图像
img { -webkit-touch-callout: none; }
9、密码
input[type=text]{ -webkit-text-security: disc; }

相关文章

  • m.uyunbaby.com SEO优化点

    pc端: 移动端: **总结:(1)对照PC端信息,移动端也做一样的**

  • 前端移动端适配总结

    前端移动端适配总结

  • 移动端总结

    1、安卓浏览器看背景图片,有些设备会模糊 用同等比例的图片在PC机上很清楚,但是手机上很模糊,原因是什么呢?经过研...

  • 移动端总结

    移动端的适配 一、Viewport视口 用法: 属性:width: 控制Viewport的大小,device-wi...

  • 移动端总结:

    更新于 2016/11/3 meta标签 使用click会出现绑定点击区域闪一下的情况 当前点击元素样式 消除tr...

  • 移动端总结

    1、常用的meta标签 2、IOS的H5页面滚动不流畅解决方案在滚动层的外面的class添...

  • 移动端总结

    移动端,UI还原很严格,1px都不能差。安装了Sketch,方便定位到元素。审批主要是详情页展示: 遇到的问题:之...

  • 移动端总结

    移动端技巧总结 对移动端开发和适配的技巧总结,主要从适配和注意事项两方面进行总结 1.媒介查询 2. 手机端加一个...

  • 遇到的坑(转)

    下面,就总结一下移动端遇见的坑。 1.input placeholder问题 在chrome 模拟移动端调试时[...

  • 移动端适配总结

    前景提要以下内容根据部分文章参考 自己实践得出的猜想和总结 有错误请指正一·概念介绍css单位:px ,rem,e...

网友评论

      本文标题:移动端总结

      本文链接:https://www.haomeiwen.com/subject/nqjfuttx.html