I am developing my site using a 1024x768 screen resolution base. When you look at a website in a browser from a computer with a lower / higher screen resolution, the website starts to warp. How can I adapt a website to the user's screen resolution regardless of the user's screen resolution? I believe this is possible via JavaScript or CSS, but I don’t know how ...
The best way to solve this problem is to use em or% (in percent) instead of using px.
.container { width: 1000 px; height: 750 px; }
.container { width: 90%; height: 90%' }
What you are looking for is a browser viewer.
, : http://andylangton.co.uk/articles/javascript/get-viewport-size-javascript/
window.innerWidth window.innerHeight JavaScript.
dojo JavaScript, dijit.getViewport(), .
, , - , .
Source: https://habr.com/ru/post/1787386/More articles:How to insert google API in MATLAB? - image-processingHow to resign or hide the keyboard? - iphoneDownload EUC-JP and other Japanese text encodings in Node.JS - javascriptРегистрация ошибок Android - androidJMS queue message reception order - javaКак я могу понять, почему Python бросает эту не описательную ошибку в Windows 7 64 бит - pythonAndroid onRestoreInstanceState (Bundle savedInstanceState) - androidAzure vhd mount exception ERROR_HTTPS_NOT_SUPPORTED - visual-studio-2010Blackberry simulator hanging under Windows VM guest - blackberryConvert SQLite Database to 3D Store - sqliteAll Articles