Mar*_*tin 11 html css scroll ipad
当用户在我的网站上执行搜索时,我想在带有垂直滚动条的小div中显示结果,而不是用户需要滚动整页.这在所有浏览器中都很完美,但我在iPad上遇到了问题.我可以看到搜索结果不适合div,但iPad上没有显示滚动条.此外,当我尝试在div内滚动时,整个页面都会滚动.是否有解决方案让这个工作?
HTML和CSS:
<div class="searchResult">
//Here I show the search result
</div>
div.searchResult
{
height: 540px;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}
Run Code Online (Sandbox Code Playgroud)
我相信答案是你不能滚动,除非你使用双指方法.但是,如果您查看最后一个链接,则有一种解决方法.
问题:
CSS Overflow属性无法在iPad中运行
http://www.webmanwalking.org/library/experiments/dsp_frames_outer_document.html
解决方法:http:
//cubiq.org/scrolling-div-on-iphone-ipod-touch