Skip to content

Instantly share code, notes, and snippets.

@Mao8a
Created July 10, 2013 05:21
Show Gist options
  • Save Mao8a/5963675 to your computer and use it in GitHub Desktop.
Save Mao8a/5963675 to your computer and use it in GitHub Desktop.
HTML: Fix to iOS iframe height issue
Fix to iOS iframe height issue
<iframe id="stupid-iframe" height="200" src="a-file.html"></iframe>
<html>
<body>
<div class="iframe-wrapper" style="width: 100%; height: 200px; overflow: auto; -webkit-overflow-scrolling: touch;">
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment