<td style="white-space :nowrap" class="WebTreeCell"><span style="background-repeat: no-repeat; background-image:url(/intf/whiteBlue/images/webtrees/commontree/sprite_icons.gif);background-position:-0px -108px;width:18px;height:18px;" flag="1"></span><span style="background-repeat: no-repeat; background-image:url(/intf/whiteBlue/images/webtrees/commontree/sprite_icons.gif);background-position:-0px -18px;width:18px;height:18px;" flag="2"></span><label class="WebTreeCellLabel" title="所有科目" style="null;;background-color:#a3d4ff">所有科目</label></td>
需要设置span为inline-block类型,并在css上加上vertical-align:top;