trigger onresize in cross browser compatible manner

后端 未结 2 1103
夕颜
夕颜 2021-01-17 03:20

I would like to trigger the onresize event from my C# code behind. I think this can be done with

Page.clientScript.RegisterScriptBlock(this.getType(), \"id\         


        
2条回答
  •  萌比男神i
    2021-01-17 04:19

    use this $(window).resize(); (tested in FF, chrome, IE8)

    // old answer, fails in FF document.body.onresize()

提交回复
热议问题