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.
ウィンドウの中央にある要素に対して関数を実行し、要素を中央に置いたままにしたときに別の関数を実行したいと思います。では、HTML要素がウィンドウの中央にあることを確認するにはどうすればよいでしょうか。
次のスタイル属性を使用します。
display: table-cell; vertical-align:middle; text-align:center; height:100%; width:100%;
これが解決することを願っています!