大马资讯论坛 - 马来西亚中文资讯平台

 找回密码
 注册
搜索

[教学] <DIV>层次显示 Display <DIV> on top another <DIV>

[复制链接]
发表于 2010-5-26 15:53:11 | 显示全部楼层 |阅读模式
使用<DIV> z-index实现层次显示
Use <DIV> z-index to control div pane sequence



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

手机版|大马资讯论坛  

GMT+8, 2024-3-29 21:27 , Processed in 0.259388 second(s), 15 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表