span默认margin的问题_html/css
来源:懂视网
责编:小采
时间:2020-11-27 16:33:04
span默认margin的问题_html/css
span默认margin的问题_html/css_WEB-ITnose:A B C div { border: 1px solid red; } span { border: 1px solid red; } 上述结构中,span与span之间显示时候居然有5px的间隙,强制设置span的margin:0无效,请教下,span与span之间5px的间隙这个是什么情况?IE7/8/9和fire
导读span默认margin的问题_html/css_WEB-ITnose:A B C div { border: 1px solid red; } span { border: 1px solid red; } 上述结构中,span与span之间显示时候居然有5px的间隙,强制设置span的margin:0无效,请教下,span与span之间5px的间隙这个是什么情况?IE7/8/9和fire

上述结构中,span与span之间显示时候居然有5px的间隙,强制设置span的margin:0无效,请教下,span与span之间5px的间隙这个是什么情况?IE7/8/9和firefox中都有
回复讨论(解决方案)
你不考虑标记间的空格吗?
他们不是也占位吗?
那是空格
我怎么感觉是因为你留的空格
擦 上面两位都秒回。。
楼上速度很快,不注意多了空格,晕
span默认margin的问题_html/css
span默认margin的问题_html/css_WEB-ITnose:A B C div { border: 1px solid red; } span { border: 1px solid red; } 上述结构中,span与span之间显示时候居然有5px的间隙,强制设置span的margin:0无效,请教下,span与span之间5px的间隙这个是什么情况?IE7/8/9和fire