2013-04-30 59 views
1

出于某种原因,我无法修改嵌入式视频的z-index以使其出现在图像前面。我知道初学者没有将定位应用于所述视频的错误,并且我尝试应用绝对和相对定位无济于事。 我看了下面的问题,我知道可以使用内联样式修改z-index。有人可以解释为什么我的z-index风格被忽略吗?在嵌入式视频上被忽略的z-index样式

Z-Index without style sheet

<!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> 
<link rel="stylesheet" type="text/css" href="SDL.css"> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<title>Home</title> 
</head> 

<body> 

<img src="img/SDL 4 Final Recompress.jpg"/> 
<embed 
src="http://blip.tv/play/AwGUv2w" 
type="application/x-shockwave-flash" width="669" 
height="500" allowscriptaccess="always" 
allowfullscreen="true" style="postion:absolute;z-index:2;"> 
</embed> 
<img src="img/Stage-Background.png" style="postion:absolute;z-index:1;"/> 

</center> 


</body> 
</html> 
+0

。 – 2013-07-17 13:57:57

回答

0

尽量让你的风格从position:absolute;position:relative;。我认为它不适合你,但它对我有用。

更新 顺便说一下,你把postion,而不是position。或者如果你有内部的其他css样式,你可以在嵌入元素中加入'wmode =“opaque”``position:relative !important;

+0

我不敢相信这个错误有多愚蠢。我拼错了位置。我很抱歉浪费你的时间。 – qaxf6auux 2013-04-30 07:07:50

+0

我已将此帖标记为删除 – qaxf6auux 2013-04-30 07:09:53