我可以在放大或缩小网页上调用Javascript函数吗? [英] Can I call Javascript Function on zoom-in or zoom-out webpage?

查看:91
本文介绍了我可以在放大或缩小网页上调用Javascript函数吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在放大或缩小网页上调用Javascript函数吗?因为我想在网页大小改变时调用javascript函数。



Plz帮助我。



谢谢

Can I call Javascript Function on zoom-in or zoom-out webpage? As I want to call a javascript function when the size of web page is changing.

Plz help me.

Thanks

推荐答案

是朋友....找到解决方案....



Yes friends.... Found the solution....

window.onresize = resize;
function resize() {
    alert("Windows is resized...");
}


请参阅下面的小提琴:

jsFiddle调整窗口大小

希望它有所帮助:)
See the below fiddle:
jsFiddle for resize the window
Hope it helps :)


这篇关于我可以在放大或缩小网页上调用Javascript函数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆