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.
現在、ボックスが設定されていますがwidth: 153px;、height: auto;ページが読み込まれると、ボックス内に何もないため、本文がありません。
width: 153px;
height: auto;
高さ: 51px でロードし、画像が追加されたら自動に変更するにはどうすればよいですか?
私は何を試しましたか?
height: 53px auto; htmlのdivに高さを設定してみました。
height: 53px auto;
簡単なことだと思いますが、うまくいかないようです。助けていただければ幸いです。お時間をいただきありがとうございます。
これは無効です。
次のように使用します。
height: 53px; height: auto;
代わりに、 を使用してmin-heightに設定できます53px。
min-height
53px
min-height: 53px; height: auto;
使用する
min-height: 53px; height: auto