R
R
Roman2019-06-30 21:24:51
Vue.js
Roman, 2019-06-30 21:24:51

How to find out the current 1) browser window size 2) div-a properties (padding, etc.) in Vue?

It is not entirely clear how to monitor these variables in order to render depending on.
It seems like media max-width in CSS, only in js
Which way to read?)
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
NaN, 2019-07-01
@KornevaViktoria

1) Create variables, calculate whatever you need .
2) And read this .
3) Then you write the condition, check the values ​​of the variables you need and do what you need.
What is a task anyway? Maybe it can be easier to solve.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question