javascript - Get Pixel height of Centimetre unit CSS -
we're writing our own web app , need user have (fairly) accurate visualisation of printed documents on-screen. i'm using centimetre unit in css try , replicate a4 page.
i need work out actual pixel height assigned following:
max-height: 27cm;
is possible in javascript? need pixel height because need compare offsetheight max-height.
well, due screens of differing size, resolution, , ppi, wouldn't possible display real life sized view of page consistent across screens. not unless find size of pixels themselves, not believe possible via js.
Comments
Post a Comment