Difference between revisions of "Viewport"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
− | In [[Mediawiki]] software can be solved by adding to [[LocalSettings.php]]: | + | In [[Mediawiki]] software can be solved by adding to [[LocalSettings.php]]<ref>https://www.mediawiki.org/wiki/Topic:Rrwecyshgzzcat0l</ref>: |
− | $out->addHeadItem('viewport', '<meta name="viewport" content="width=device-width">');< | + | <pre>$out->addHeadItem('viewport', '<meta name="viewport" content="width=device-width">');</pre> |
[[Category:web]] | [[Category:web]] |
Revision as of 05:42, 31 December 2019
Viewport in web browsers is the visible portion of the entire page. If the document is larger than the viewport, the user can shift the viewport around by scrolling.
In Mediawiki software can be solved by adding to LocalSettings.php[1]:
$out->addHeadItem('viewport', '<meta name="viewport" content="width=device-width">');
Advertising: