CSS vertical alignment of inline/inline-block elements

后端 未结 4 1229
南旧
南旧 2020-11-22 09:36

I\'m trying to get several inline and inline-block components aligned vertically in a div. How come the span in this exam

4条回答
  •  星月不相逢
    2020-11-22 09:56

    Give vertical-align:top; in a & span. Like this:

    a, span{
     vertical-align:top;
    }
    

    Check this http://jsfiddle.net/TFPx8/10/

提交回复
热议问题