jQuery resize取得瀏覽器目前視窗寬度
Temperature: 0 °C
在使用CSS調整RWD顯示時~
也可以使用javascript來做一些輔助,例如判斷目前瀏覽器的大小。
$(document).ready(function(){
$(window).resize(function() {
var wdth=$(window).width();
alert(wdth);
});
});
台北市內湖區江南街71巷75弄 Go
https://innstory.com/story-jQuery_resize取得瀏覽器目前視窗寬度-1632
javascript