对象标签中的重叠问题
问题描述:
你好朋友,
下面是我的aspx页面中的代码.在这里,我将对象标记称为Silverlight应用程序.我的要求是我要在"silverlightControlHostContainer" div上重叠"myoverlapping" div,这意味着
myoverlapping over silverlightControlHostContainer
Hello Friends,
below is my code in my aspx page. Here I call silverlight application in object tag. My requirement is that I want to overlap ''myoverlapping'' div on ''silverlightControlHostContainer'' div means
myoverlapping over silverlightControlHostContainer
<form id="form1" runat="server" style="height: 100%;">
<div style="height: 100%; width: 100%">
<div id="silverlightControlHostContainer" style="height: 100%; width: 100%; background-color: Aqua; z-index: 99; removed: absolute">
<div id="silverlightControlHost" style="height: 100%; width: 100%; background-color: Aqua;
position: absolute">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" style="height: 100%; width: 100%;background-color:Aqua;z-index:99;position:absolute"
width="100%" height="100%">
<param name="source" value="ClientBin/SilverlightApplication1.xap" style="background-color:Aqua;z-index:99;removed:absolute" />
<param name="onError" value="onSilverlightError" style="background-color:Aqua;z-index:99;removed:absolute"/>
<param name="background" value="white" />
<param name="minRuntimeVersion" value="4.0.50826.0" style="background-color:Aqua;z-index:99;removed:absolute"/>
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50826.0" style="text-decoration: none;background-color:Aqua;z-index:99;removed:absolute">
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight"
style="border-style: none;" />
</a>
</object>
</div>
</div>
<div id="myoverlappingdiv" style="height: 100%; width: 100%; background-color: Red; z-index: 100; removed: absolute">
</div>
</div>
</form>
请帮助我
please help me
答
将以下行添加到aspx页面中的对象Tag中...
此参数用于在html页面后呈现对象标签....
Add below line into object Tag in your aspx page...
this param is used for rendering your object tag behind the html page....
<param name="windowless" value="true" />
嘿,刚刚从画布中Xaml文件设置了z-Index属性.....
hey just set z-Index Property from Xaml file in canvas.....
尝试将z-index设置为- 1或0.
try setting z-index as -1 or 0.