Now it is said that the 100% business of height Hard coding width should be displayed according to 16:9. How should 16:9 be calculated?
Using js to Obtain the Actual Height of Pictures
$('img').height(), of course, you can also directly use the height value of your Hard coding, then multiply this height value by 16 and divide by 9, that is, the width-to-height ratio of the picture is 16: 9.
The reverse is to multiply the height by 9 and divide it by 16.