Home > Web Front-end > HTML Tutorial > How to determine whether a webpage is for mobile use when the source code of the webpage is available_html/css_WEB-ITnose

How to determine whether a webpage is for mobile use when the source code of the webpage is available_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:00:44
Original
1187 people have browsed it

Are there any tags or elements that will definitely be there? How can I judge it through js?


Reply to the discussion (solution)

If you have to use tags , see if these two count,

<!DOCTYPE html><meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
Copy after login

<meta name="viewport" content="width=device-width"/>

<meta name="viewport" content="width=device-width"/>
Copy after login

I hope you will post more in the html5 section in the future. Of course, you can also post here

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template