Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C# Asp.Net アプリケーションのサイズ変更イベントが見つかりません。私はこのonresizeようなことをしようとしていますが、私の中にイベントはありません<body runat="server" ..>。
onresize
<body runat="server" ..>
C# ASP.NET アプリケーションでブラウザーのサイズ変更時に関数呼び出しを追加するにはどうすればよいですか?
JavaScript を使用して、カスタムのサイズ変更ハンドラーをウィンドウに追加する必要があります。このようなもの。
<script> function customResize(){ //your code } function onLoad(){ window.onresize = customResize; } </script> <body onload="onLoad"></body>