<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Div CSS布局实例:详解在Flash上面建立浮动层</title>
<style type="text/css">
<!--
body {
margin:0;
padding:0;
font-size:12px;
}
#flash {
margin:20px auto 0 auto;
width:500px;
height:220px;
position:relative;
}
#nav {
position:absolute;
right:50px;
top:30px;
width:400px;
line-height:30px;
text-align:center;
font-weight:bold;
background:#f00;
border:1px solid #fff;
}
#nav a {
color:#fff;
}
#nav a:hover {
color:#ff0;
}
-->
</style>
</head>
<body>
<div id="flash">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="220">
<param name="movie" value="http://www.52css.com/attachments/month_0711/623/hehe.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="attachments/month_0711/623/hehe.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="220"></embed>
</object>
<div id="nav"><a href="http://www.52css.com/css_websites_showcase/" title="CSS酷站欣赏">这是浮动层</a></div>
</div>
</body>
</html>
包含Flash 父级元素 相对定位, 在FLSH元素 参数上加<param name="wmode" value="transparent" />
这个是必须要加的。 然后 层定义为绝对定位。
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Div CSS布局实例:详解在Flash上面建立浮动层</title>
<style type="text/css">
<!--
body {
margin:0;
padding:0;
font-size:12px;
}
#flash {
margin:20px auto 0 auto;
width:500px;
height:220px;
position:relative;
}
#nav {
position:absolute;
right:50px;
top:30px;
width:400px;
line-height:30px;
text-align:center;
font-weight:bold;
background:#f00;
border:1px solid #fff;
}
#nav a {
color:#fff;
}
#nav a:hover {
color:#ff0;
}
-->
</style>
</head>
<body>
<div id="flash">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="220">
<param name="movie" value="http://www.52css.com/attachments/month_0711/623/hehe.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="attachments/month_0711/623/hehe.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="220"></embed>
</object>
<div id="nav"><a href="http://www.52css.com/css_websites_showcase/" title="CSS酷站欣赏">这是浮动层</a></div>
</div>
</body>
</html>
包含Flash 父级元素 相对定位, 在FLSH元素 参数上加<param name="wmode" value="transparent" />
这个是必须要加的。 然后 层定义为绝对定位。