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

Menu