[教学] <DIV>层次显示 Display <DIV> on top another <DIV>
使用<DIV> z-index实现层次显示Use <DIV> z-index to control div pane sequence
http://4.bp.blogspot.com/_4EWpEzDdWxo/S_zTZYYwkXI/AAAAAAAABP0/ViYYoifLPz4/s400/layer.jpg
LAYER 1 ON TOP:
LAYER 1在上的设置
<div style="position:relative; font-size:50px; z-index:2;">LAYER 1</div>
<div style="position:relative; top:-50; left:5; color:red; font-size:80px; z-index:1">LAYER 2</div>
LAYER 2 ON TOP:
LAYER 2在上的设置
<div style="position:relative; font-size:50px; z-index:3;">LAYER 1</div>
<div style="position:relative; top:-50; left:5; color:red; font-size:80px; z-index:4">LAYER 2</div>
Read More
更多
http://www.echoecho.com/csslayers.htm
页:
[1]