滚动不适用于iPhone [英] Scrolling not working on Iphone

查看:115
本文介绍了滚动不适用于iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有下面的div,本地滚动不起作用。这个代码有什么可能导致滚动失败?或者有什么我可以添加到这个滚动工作吗?

I have the following div and the native scrolling does not work on it. Is there anything from this code that could possible be caused the scrolling to fail? Or is there something I can add to this to make the scrolling work?

<div id='calvw' style='overflow= hidden;'>    
  <a id='calevvw' dhx_l_id='#id#' data-ajax='false' href='eventview.php?eventid=#id#'
class='dhx_list_item dhx_list_day_events_time'
 style='width:{common.widthSize()}; height:{common.heightSize()};
border-bottom: 1px solid #cbcbcb; padding:{common.padding}px;
 margin:{common.margin}px; overflow:hidden;'>    
</a> 
</div>


推荐答案

code> #calvw ,这是行不通的,因为你有 overflow:hidden 就可以了。

If the div you are tying to have scroll is #calvw, this won't work, as you have overflow:hidden on it.

将该元素的css更改为:

Change the css of that element to:

overflow:scroll;
-webkit-overflow-scrolling:touch;

启用原生动态滚动。

这篇关于滚动不适用于iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆