1 v1024 2015-11-24 08:43:02 +08:00 via iPhone 把网页的主体部分再放到一个 overflow : Scroll 的层里,这样拖拽的就是这个层里面的内容而不是整个网页。 |
![]() | 2 66beta 2015-11-24 09:04:21 +08:00 慎用 fixed ,有输入框的时候,框都要被它挡住的 |
![]() | 3 ljcarsenal 2015-11-24 09:05:01 +08:00 在 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 09:06:01 +08:00 ![]() |
![]() | 5 LucasW 2015-11-24 09:52:33 +08:00 html, body{ height:100%; position:relative; -webkit-overflow-scrolling: touch; } header { position:absolute; top:0; left:0 } |
![]() | 6 hkongm 2015-11-24 10:26:05 +08:00 ![]() focus 时, fixed 改为 absolute 原生键盘影响了定位 我们的做法:不在有 input 的情况下设计 fixed 元素,列为规范 小 tip : position:-webkit-sticky; |
![]() | 7 hqs123 2015-11-24 10:27:39 +08:00 楼主 php 功力有待加强啊... |
8 datou552211 2015-11-24 10:34:23 +08:00 via iPhone @hqs123 php ? |
![]() | 10 JerryZou 2015-11-24 16:00:39 +08:00 ![]() 我觉得是 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 |