CSS3 property webkit-overflow-scrolling:touch ERROR

前端 未结 8 1436
闹比i
闹比i 2020-11-28 01:35

iOS 5 released web designers a new property -webkit-overflow-scrolling:touch that uses the iOS devices hardware accelerator to provide native scrolling for a sc

8条回答
  •  感情败类
    2020-11-28 02:00

    What a bugger they let loose here. Tried all manner of workarounds until I finally found the only property needed by for elements to be properly rendered in a -webkit-overflow-scrolling:touch div: position: static

    Relative and absolute positioned elements are always cut off on the boundary, and completely missing (except for empty space) outside of it. If you change the position property dynamically, from static to absolute, only the visible portion of the scrollable div viewport stays rendered, wherever the offset happens to be.

提交回复
热议问题