How to create a div always floating on top For Ipad without issues?
I tried to use position fixed , and tested on Ipad 4 , very buggy.
My second attempt is to make the content inside a #container div and put the fixed object,actually a menu,outside the container and let the #container overflow-y:scroll and hidden the body overflow. Tested on Ipad 4, the problems are:
Any advises on create a div always floating on top For Ipad without issues? I thought this should be a common problems.
I've succeeded by putting the container into -webkit-overflow-scrolling:touch
mode, which you claim not to be working.
Try once more:
#container {
overflow:scroll;
-webkit-overflow-scrolling:touch;
-webkit-backface-visibility:hidden;
-webkit-transform:translateZ(0px);
}
链接地址: http://www.djcxy.com/p/17124.html