User Tools

Site Tools


web

This is an old revision of the document!


viewport width:

window.innerWidth == viewport.width
window.screen.width are screen width in points.
window.devicePixelRatio tells how many physical pixels equal 1 css px. 

屏幕的宽度比如 360x720 单位是 pt,1 pt 等于 x 英寸。 css 中 1 px = 实际宽度 1 pt。

实际渲染的像素等于:css px * devicePixelRatio * inital-scale ?
web.1526842325.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki