diff options
| author | Mark Otto <[email protected]> | 2013-08-14 15:17:34 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-14 15:17:34 -0700 |
| commit | 4bf9fc3d028ddf9edf64008fe518f8ed090c7338 (patch) | |
| tree | 246a0cf1d59393854d413c9993208200cca6ed98 /css.html | |
| parent | 8d3dbe78c6f370e4a15da338502db329d5acb16a (diff) | |
| parent | fb71f402456b27b66184acbd341e8119188c3c20 (diff) | |
| download | bootstrap-4bf9fc3d028ddf9edf64008fe518f8ed090c7338.tar.xz bootstrap-4bf9fc3d028ddf9edf64008fe518f8ed090c7338.zip | |
Merge pull request #9544 from gabrielecirulli/3.0.0-wip
Add information on how to disable zoom on mobile devices to the docs
Diffstat (limited to 'css.html')
| -rw-r--r-- | css.html | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -30,6 +30,10 @@ base_url: "../" {% highlight html %} <meta name="viewport" content="width=device-width, initial-scale=1.0"> {% endhighlight %} + <p>You can disable zooming capabilities on mobile devices by adding <code>user-scalable=no</code> to the viewport meta tag. This disables zooming, meaning users are only able to scroll, and results in your site feeling a bit more like a native application. Overall we don't recommend this on every site, so use caution!</p> +{% highlight html %} +<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> +{% endhighlight %} <h3 id="overview-responsive-images">Responsive images</h3> <p>Images in Bootstrap 3 can be made responsive-friendly via the addition of the <code>.img-responsive</code> class. This applies <code>max-width: 100%;</code> and <code>height: auto;</code> to the image so that it scales nicely to the parent element.</p> |
