我正在制作一个有固定电离层的电离层仪(见200px
高)和电离层中所含内容。 我不喜欢“SOS”滚动,因为它不像你通过仅仅通过一个网页上抹掉的本土滚动(SOS的本土滚动势头,而“
<代码>div 我正试图培养以下素质:
- Set width
- Dynamic height (content via AJAX)
内容从外部网站上载到一个div
,使用j Query AJAX,并且可以选择重载AJAX的请求。 这意味着,视装页内容数量,<代码>div<>/code>的高度将发生变化。
I can t seem to find any solutions that allow momentum scrolling in iOS where the div
doesn t have a set with, and I ve tried the following:
- webkit-overflow-scrolling: touch
- iScroll
这些问题:
- This was my first choice, as it s just a
css
tag and usually works fine. It s new though and has a lot of bugs, including a deal breaker one for my web app. If youfocus
on aninput
element, the page zooms in (even with themeta
tag set touser-scalable:no
) and doesn t zoom out until you type text in the text box, and then everything is off by3px
. - This solution is laggy and the height needs to be fixed. Using it s refresh function is too cumbersome as it needs to be called when the AJAX request is reloaded, when the page is reloaded, if elements are hidden, etc.
TL; : 除了-webkit-overflow-scrolling
和iScroll
外,是否还有其他解决办法可允许我利用动态高度(通过AJAX在S中连续装满)的滚动动力滚动机。