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

HTML realizes the horizontal zoom effect of turning off the browser

零下一度
零下一度Original
2017-04-21 17:56:542355browse

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;
}

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!

Statement:
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