在iPad上滚动iframe [英] scroll iframe on iPad

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

问题描述


可能存在重复:


我有一个页面,其代码大致如下:

 < table width =100%> 
< tr>
< td>
< iframe src =grid_data.htmlwidth =100%/>
< / td>
< / tr>
< / table>

现在grid_data.html具有许多行/列的表格数据,并且是主页面的一部分。 ..



虽然此网格在IE / FF等桌面浏览器的主页面内水平滚动,但我无法在iPad Safari上滚动。
即它实际上显示完整的网格数据,没有任何滚动条。


我尝试了溢出:自动为iframe,但仍然没有帮助..

p>

如何在iPad上滚动网格数据(iframe的一部分)?



的想法,你可以在 http://ipad.atwebpages.com/table/try上看到该页面。 html
试想像2011年5月24日,2011年5月23日,2011年5月22日,2011年5月21日等多个日期列...

解决方案

阅读,以及它的评论。



来自评论:


不幸的是,这并不适用
。看来,两个手指
iframe和对象滚动在
4.2.1中破解(尽管它适用于文本框)。希望苹果能够在下一个版本中修复这个恼人的bug。
- user357320 1月7日10:51



Possible Duplicate:
IFRAMEs and the Safari on the iPad, how can the user scroll the content?

I have a page which has a code roughly like follow;

<table width="100%">
<tr>
<td>
<iframe src="grid_data.html" width="100%" />
</td>
</tr>
</table>

Now the grid_data.html has tabular data of many rows/columns and is part of the main page...

While this grid scrolls horizontally within the main page on desktop browsers like IE/FF, I cannot get it to scroll on the iPad Safari.. i.e. it actually displays the complete grid data without any scroll bars..

I tried experimenting with overflow:auto for the iframe, but still hasn't helped..

How do I get the grid data (part of iframe) to scroll on the iPad?

To get a rough idea, you can see the page on http://ipad.atwebpages.com/table/try.html Just imagine there are multiple date columns like 05/24/2011 , 05/23/2011 , 05/22/2011 , 05/21/2011 and so on...

解决方案

Read this answer, with its comments.

From the comments:

Unfortunately this doesn't work either. It seems that two fingered iframe and object scrolling broke in 4.2.1 (although it works for textboxes). Hopefully Apple will fix this annoying bug in the next release. – user357320 Jan 7 at 10:51

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

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