<div id="first">first</div> <div id="second">second</div> #first {…} #second {…}
理想的结果:
second first
#first { margin-top: 20px; } #second { top: 0; position: absolute; }
http://jsfiddle.net/9zmcnedy/