jQuery resize取得瀏覽器目前視窗寬度
Temperature: 0 °C
在使用CSS調整RWD顯示時~
也可以使用javascript來做一些輔助,例如判斷目前瀏覽器的大小。
$(document).ready(function(){
$(window).resize(function() {
var wdth=$(window).width();
alert(wdth);
});
});
台北市內湖區江南街71巷75弄 Go
HOME All Categories jQuery res...
Temperature: 0 °C
在使用CSS調整RWD顯示時~
也可以使用javascript來做一些輔助,例如判斷目前瀏覽器的大小。
$(document).ready(function(){
$(window).resize(function() {
var wdth=$(window).width();
alert(wdth);
});
});
台北市內湖區江南街71巷75弄 Go
台北市內湖區江南街71巷75弄-Nearby Attractions
Mark Chang
離不開電腦的宅男
Leave some footprints to prove that you visited me
Author's other related stories
Other stories happened at this address
Please select an option
error
Copy complete
Hi, thank you for your participation, but you cannot vote repeatedly~
Wrong format