1
v1024 2015 年 11 月 24 日 via iPhone
把网页的主体部分再放到一个 overflow : Scroll 的层里,这样拖拽的就是这个层里面的内容而不是整个网页。
|
2
66beta 2015 年 11 月 24 日
慎用 fixed ,有输入框的时候,框都要被它挡住的
|
3
ljcarsenal 2015 年 11 月 24 日
在 head 里加入 <meta name="viewport" content="width=device-width,target-densitydpi=high-dpi,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>试试呢
|
4
rain0002009 2015 年 11 月 24 日 |
5
LucasW 2015 年 11 月 24 日
html, body{
height:100%; position:relative; -webkit-overflow-scrolling: touch; } header { position:absolute; top:0; left:0 } |
6
hkongm 2015 年 11 月 24 日 focus 时, fixed 改为 absolute
原生键盘影响了定位 我们的做法:不在有 input 的情况下设计 fixed 元素,列为规范 小 tip : position:-webkit-sticky; |
7
hqs123 2015 年 11 月 24 日
楼主 php 功力有待加强啊...
|
8
datou552211 2015 年 11 月 24 日 via iPhone
@hqs123 php ?
|
10
JerryZou 2015 年 11 月 24 日 我觉得是 page bounce effect 的问题,你用这个关键词 google 看看,一般是 iOS 上才有的问题。
- http://stackoverflow.com/questions/20461485/ios-disable-bounce-scroll-but-allow-normal-scrolling - http://stackoverflow.com/questions/8150191/disable-elastic-scrolling-in-safari - https://github.com/timbartsch/no-bounce |