html - Mobile Safari: How to implement a fixed position, scrollable iframe? -



html - Mobile Safari: How to implement a fixed position, scrollable iframe? -

is there way implement fixed position, scrollable iframe in mobile safari? have spent quite few hours on problem , can't seem find solution it.

for non-fixed iframes, possible work around bugs using combo of -webkit-overflow-scrolling: touch; , overflow: auto;, can't find way create fixed iframes scrollable in mobile safari.

here's jsbin problem.

tested against ios 8 on ipad 4 , iphone 5s.

you should add together positions (top,bottom,left,right) fixed iframe:

.iframe-wrap { background: #ddd; position: fixed; right: 0; bottom: 0; left: 0; top: 0; width: 100%; height: 100%; padding: 25px; box-sizing: border-box; -webkit-overflow-scrolling: touch; overflow: auto; }

i tried in iphome simulator , works.

html css iframe webkit mobile-safari

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -