Everyone knows that if you want to align the pictures and text vertically, you can add the align=absmiddle attribute under the IMG tag, but the align=absmiddle attribute cannot be passed under W3C verification. So can CSS be used instead of IMG? The align=absmiddle attribute is used to achieve vertical centering, and the answer is yes. You can add vertical-align:middle to CSS; it can be implemented:
<div><img style="vertical-align:middle;" src="/uploadfile/png/IconBuffet/Redmond/close_32.png" />Use CSS to achieve vertical centering alignment of pictures and text</div><br /> <br />
<div><img src="/uploadfile/png/IconBuffet/Redmond/close_32.png" />This is an effect without adding styles</div><br /><br />
<div><img align=absmiddle src="/uploadfile/png/IconBuffet/Redmond/close_32.png" />This is to use align=absmiddle to achieve vertical centering alignment of pictures and text</div>
From the effect, it seems that the implementation of CSS is slightly more reliant, but using CSS control feels much more enjoyable.