Instantly share code, notes, and snippets.
方法一: 两个行内元素都设置 vertical-align:middle;
方法二: 两元素设置浮动
方法三:不对齐原因是基线不对齐; 如果第一个div没有文字 加个字就可以