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.
幅と高さが % の img を垂直方向と水平方向の中央に配置するにはどうすればよいですか。img は画面の解像度に応答するようになり、中央に配置する必要があります。
このimgをこのようなテーブルに入れることでこれを修正できました
<table align="center" valign="center"> <tr> <td style="text-align:center;"> <img style="width:80%;max-width:500px;" src="logo.png"/> </td> </tr> </table>