Created
June 12, 2018 14:51
-
-
Save imranariffin/184d56fb559586c7da9472bfece4ef16 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/gexafax
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| .scroll-wrapper { | |
| /* -webkit-overflow-scrolling: touch; */ | |
| /* overflow-y: scroll; */ | |
| /* important: dimensions or positioning here! */ | |
| width: 500px; | |
| height: 500px; | |
| } | |
| .scroll-wrapper iframe { | |
| /* nada! */ | |
| height: 100%; | |
| width: 100%; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="scroll-wrapper"> | |
| <iframe src="https://davidwalsh.name/scroll-iframes-ios"></iframe> | |
| </div> | |
| <script id="jsbin-source-css" type="text/css">.scroll-wrapper { | |
| /* -webkit-overflow-scrolling: touch; */ | |
| /* overflow-y: scroll; */ | |
| /* important: dimensions or positioning here! */ | |
| width: 500px; | |
| height: 500px; | |
| } | |
| .scroll-wrapper iframe { | |
| /* nada! */ | |
| height: 100%; | |
| width: 100%; | |
| }</script> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .scroll-wrapper { | |
| /* -webkit-overflow-scrolling: touch; */ | |
| /* overflow-y: scroll; */ | |
| /* important: dimensions or positioning here! */ | |
| width: 500px; | |
| height: 500px; | |
| } | |
| .scroll-wrapper iframe { | |
| /* nada! */ | |
| height: 100%; | |
| width: 100%; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment