Is there a cross browser solution to tri开发者_运维问答gger a function when a user alters the viewport size? I have a function that runs on load to set margins according to the viewport width, but also want it to recalculate if the viewport dimensions are altered.
Cheers Paul
$(window).resize(function() {...});
精彩评论