JQuery: check oversized font size

Can I check with jQuery if the user increased the font size and bound the function to this event to recount some things when this happens?

+3
source share
2 answers

Unfortunately, no, you cannot do this directly.

The closest thing you can get, I suppose, is related to the event of the resizeelement, which, as you know, will affect it. You can do this by capturing the resize plugin , and then binding the event to the font size of the element will resize, for example:

$("#myDiv").resize(function() {
 //recalc
});

resize .resize() .

+4

, . , , , .

0

Source: https://habr.com/ru/post/1741563/


All Articles