Skip to content

Instantly share code, notes, and snippets.

@matthewhudson
Created July 5, 2012 18:27
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save matthewhudson/3055535 to your computer and use it in GitHub Desktop.
Save matthewhudson/3055535 to your computer and use it in GitHub Desktop.
"Reset" css for UIWebView
<!-- Disable auto-linking of phone numbers. -->
<meta name="format-detection" content="telephone=no">
<!-- Enables the web application runs in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Sets the style of the status bar for a web application. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- Sets the initial scale and turns off user scaling. -->
<meta name="viewport" content="initial-scale = 2.3, user-scalable = no">
* {
/* Safari displays a callout containing information when you touch and hold a touch target such as a link. This property allows you to disable that callout. */
-webkit-touch-callout: none;
/* Disable user selection/copy of UIWebView content. */
-webkit-user-select: none;
/* Specifies a size adjustment for displaying text content in Safari on iPhone. */
-webkit-text-size-adjust: none;
}
/* Native buttons/controls: http://css-infos.net/property/-webkit-appearance */
button, input[type=submit] {
-webkit-appearance: button;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment