WeChat Mini Programs realizes that the picture is 100% wide and highly adaptive. What alternative method can be used when height:auto does not take effect?

has also seen the document. Wechat"s native image has a mode attribute to solve this problem, but all the pictures on my side are contained in a rich text string, which makes it a bit difficult to achieve. Is there anything that can solve this problem through css?

Apr.07,2021

Mini Program's image component is very painful, in fact, it is implemented by the background map of block-level elements, so there is no way to achieve a high degree of self-adaptation.
you can use bindload to get the actual picture width and height

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-1b3d11a-2bae0.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-1b3d11a-2bae0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?