<span>是行内元素,span只有margin-left和margin-right才有效果。要想margin-top生效就要把span转给块级元素才行。在span的css中加入以下属性即可。
.span{
display
:
block
;}
<span>是行内元素,span只有margin-left和margin-right才有效果。要想margin-top生效就要把span转给块级元素才行。在span的css中加入以下属性即可。
.span{
display
:
block
;}