value when the browser is resized (useful for devices which switch from portrait to landscape) var current_width = $(window).width();
if(current_width < 400){
我正在运行一个第三方脚本,它在加载时计算元素的宽度。它工作得很好,但我有一个响应式的网站,当我重新调整浏览器的大小时,元素不再正确显示。var w = ticker.width();if (controls.length) w -= controls.outerWidth() + parseFloat(controls.css("margin-left"));
new