margin-left margin-top has no effect but with no effect? How to solve?

Because the span element is in function, you need to first span to the blocks or block elements can function cascade.

code show as below:span{ display:block;margin-top;}

Inline elements may be provided around the margins and margin, but if you want to set the margins and bottom margins must be set as a block-level element.

Guess you like

Origin www.cnblogs.com/lsyy2017/p/11099679.html