资讯王 发表于 2010-5-26 15:53:11

[教学] <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]
查看完整版本: [教学] <DIV>层次显示 Display <DIV> on top another <DIV>