M
M
MrNow2018-07-06 11:30:59
PHP
MrNow, 2018-07-06 11:30:59

Is it possible to resize document.documentElement.clientWidth somehow?

Good afternoon!
Is it possible to change the size of document.documentElement.clientWidth somehow ?
When I visit the site, document.documentElement.clientWidth becomes 1200, no matter what phone I come from
. And if I turn on the PC version or go from a PC, then the screen size is set based on the screen size, even if the viewport meta tag is set

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2018-07-06
@Sanasol

Where is the code?
If you "compare" something like this
if(document.documentElement.clientWidth = 1200)
then it will be 1200 everywhere xD
And without details in the form of code, this is crazy nonsense.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question