The img tag is always one header higher than input. It is feasible to use align=absmiddle, but it does not meet the HTML standards. I accidentally found that vertical-align:middle is OK. Friends who have similar situations can refer to the input and img in the same line. The img tag is always one header higher than input, which is very ugly. I've tried many methods before, but they don't work. Later, the most searched on the website was to add an align=absmiddle attribute to img. This method seems to be feasible, but it does not comply with HTML standards. Later, I accidentally discovered that I just added vertical-align:middle to input and img at the same time:
Copy the code