Anti-shake text below the image

For example, as shown below

 

 

If the network speed is very slow and the image loading delay is not displayed, the text will appear at the top and then be squeezed to the bottom after the image is loaded. We need to use padding-bottom: percentage to achieve this

 

Guess you like

Origin blog.csdn.net/qq_30596783/article/details/115731375