解决两个相邻的span,或者input和button中间有间隙,在css中还看不到
<span id="time"></span><span id="second"></span>
<input placeholder="搜索单位名称" /><button type="button">搜索</button>
直接写在一行就没有空格。
产生间隙原因: 换行或空格会占据一定的位置
<span id="time"></span><span id="second"></span>
<input placeholder="搜索单位名称" /><button type="button">搜索</button>
直接写在一行就没有空格。
产生间隙原因: 换行或空格会占据一定的位置