Home > Web Front-end > H5 Tutorial > How to disable horizontal screen in html5

How to disable horizontal screen in html5

藏色散人
Release: 2021-04-12 10:03:05
Original
9733 people have browsed it

How to disable horizontal screen in html5: First open the corresponding HTML5 code file; then add "<meta name="screen-orientation" content="portrait">" in the head area to disable html5 The page is horizontal.

How to disable horizontal screen in html5

The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.

Disable horizontal screen of html5 page on mobile phone

Prohibit horizontal screen of html5 page on mobile phone. The codes for prohibiting horizontal screen of uc browser and qq browser are as follows, and the meta tag is added to the head area&lt ;meta name="screen-orientation" content="portrait">

uc browser forces vertical screen

<meta name="screen-orientation" content="portrait">
Copy after login

QQ browser forces vertical screen

<meta name="x5-orientation" content="portrait">
Copy after login

UC Browser Forced Full Screen

<meta name="full-screen" content="yes">
Copy after login

QQ Browser Forced Full Screen

<meta name="x5-fullscreen" content="true">
Copy after login

UC Browser Application Mode

<meta name="browsermode" content="application">
Copy after login

QQ Browser Application Mode

<meta name="x5-page-mode" content="app">
Copy after login

windows phone click without highlight

<meta name="msapplication-tap-highlight" content="no">
Copy after login

[Recommended learning: HTML5 video tutorial]

The above is the detailed content of How to disable horizontal screen in html5. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
html5 validation for symfony 2.1
From 1970-01-01 08:00:00
0
0
0
The difference between HTML and HTML5
From 1970-01-01 08:00:00
0
0
0
html5 show hide
From 1970-01-01 08:00:00
0
0
0
Can PDF files run HTML5 and Javascript?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template