jQuery缩小放大触发事件

jquery的resize()方法使用javascript

 

<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>html

<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript">
var i = 0;
$(document).ready(function(){
$(window).resize(function() {
  i++;java

var Width = document.documentElement.clientWidth;jquery

var Height = document.documentElement.clientHeight;
  alert(i);
});测试

});
</script>
</head>
</html>htm

 

 

 

测试地址:ip

http://www.w3school.com.cn/tiy/t.asp?f=jquery_event_resizeio

相关文章
相关标签/搜索