解决两个相邻的span,或者input和button中间有间隙,在css中还看不到

<span id="time"></span><span id="second"></span>

 

<input placeholder="搜索单位名称" /><button type="button">搜索</button>

直接写在一行就没有空格。

产生间隙原因: 换行或空格会占据一定的位置

posted @ 2020-09-18 13:51  何以平天下  阅读(928)  评论(0编辑  收藏  举报