Home > Web Front-end > HTML Tutorial > HTML realizes the horizontal zoom effect of turning off the browser

HTML realizes the horizontal zoom effect of turning off the browser

零下一度
Release: 2017-04-21 17:56:54
Original
2430 people have browsed it

htmlHow to cancel horizontal zoom, the editor will share with you.

html usually handles browser zoom.

If you need to turn off the horizontal zoom effect of the browser.

You can set the minimum width of body and html.

Implementation code:

html{
    position: relative;
    min-width: 1280px;
    width: 100%;
    height: 100%;
}
body{
    min-width: 1280px;
    position: relative;
    width: 100%;
    height: 100%;
    background: #323333;
    opacity: 1;
}
Copy after login

Students who need to learn html please pay attention to the php Chinese website html video tutorial, many html online video tutorials can be watched for free!

The above is the detailed content of HTML realizes the horizontal zoom effect of turning off the browser. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template