<div>
<span id='1' style="position:relative;top:0;background-color:red;width:100;height:100"> </span>
<span id='2' style="position:relative;top:0;background-color:red;width:100;height:100"> </span>
</div>
<span id='1' style="position:relative;top:0;background-color:red;width:100;height:100"> </span>
<span id='2' style="position:relative;top:0;background-color:red;width:100;height:100"> </span>
</div>
我不太想用JS做判断,因为比较常用的,所以想CSS能搞定就好了
高人继续吧~~~~
<span id='1' style="position:relative;top:0;background-color:red;width:100;height:100"> </span>
<span id='2' style="position:relative;top:0;background-color:red;width:100;height:100"> </span>
</div>