When the div is highly variable, how can the internal img images be highly adaptive 100% using only css?

as in the title, div sets height and max-height. The size of the picture is uncertain.

Css
Mar.18,2021

max-width:100%
height-width:100%
then meta sets the viewport, image to be adaptive


this setting depends on the specific needs. You can see a similar problem sets the width and height of the picture according to certain rules

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5503f-452d9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5503f-452d9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?