两个input之间有空隙,处理方法

修改css,给前边一个input添加一个左浮动。

  1.  
    <input id="day" type="button" value="日" name="time1" class="checked" style="float: left"/>
  2.  
    <input id="month" type="button" value="月" name="time1" class="" />
  3.  
    <input id="year" type="button" value="年" name="time1" class="" />

效果图:

分开   后面加   右浮动

猜你喜欢

转载自www.cnblogs.com/apolloren/p/9715845.html