Code Monkey home page Code Monkey logo

Comments (2)

lisalin880505 avatar lisalin880505 commented on July 22, 2024

理想视窗的观点应该不对吧,这个应该是浏览器自己决定的,并不是计算公式出来的。另外,设置initial-scale和设置width的功能接近,都是用来设置layout viewport的宽度的,为什么要先产生visual viewport?我认为visual viewport是浏览器默认为了显示全部内容,所以第一次加载页面的时候将visual viewport设置成layout viewport的宽度,当你缩放页面后再刷新,它会保留上次visual viewport的宽度,和meta里面的值并没有什么关系。

from blogs.

muwoo avatar muwoo commented on July 22, 2024

@lisalin880505 感谢,已纠正

from blogs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.