silverlight 应用程序中的 html 覆盖
已经阅读了许多关于此的文章,这是我提出的代码。 有人可以告诉我为什么 没有覆盖在 SL 应用程序之上吗?我知道我发布的表格中没有任何可见内容,但在我的代码中却有。
<style type="text/css">
#TABLESTYLE
{
position:absolute;
top:0px;
left:0px;
}
</style>
<style type="text/css">
#SLSTYLE
{
position:absolute;
top:100px;
left:0px;
}
</style>
</head>
<body>
<table id="TABLESTYLE" width="100%" border=0 bordercolor="#5b5b5b" cellspacing=0 cellpadding=0 z-index=1>
<col width="10%">
<col width="80%">
<col width="10%">
<tr>
<div style="font-family:Arial; height:128px; width:100%; background:#5b5b5b;">
</table>
<form id="SLSTYLE" runat="server" style="height:100%" z-index=-1>
<div>
<object data="data:application/x-silverlight-2," type="application/x-silverlight- 2" width="100%" height="100%">
<param name="source" value="xxx.WebUI.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="4.0.50826.0" />
<param name="autoUpgrade" value="true" />
<param name="windowlessmode" value="true" />
</form>
</body>
Having already read a number of articles on this here is the code I've come up with.
Can someone please tell me why the <table>
doesn't overlay on top of the SL app? I'm aware the table I posted doesn't have anything visible in it but in my code it does.
<style type="text/css">
#TABLESTYLE
{
position:absolute;
top:0px;
left:0px;
}
</style>
<style type="text/css">
#SLSTYLE
{
position:absolute;
top:100px;
left:0px;
}
</style>
</head>
<body>
<table id="TABLESTYLE" width="100%" border=0 bordercolor="#5b5b5b" cellspacing=0 cellpadding=0 z-index=1>
<col width="10%">
<col width="80%">
<col width="10%">
<tr>
<div style="font-family:Arial; height:128px; width:100%; background:#5b5b5b;">
</table>
<form id="SLSTYLE" runat="server" style="height:100%" z-index=-1>
<div>
<object data="data:application/x-silverlight-2," type="application/x-silverlight- 2" width="100%" height="100%">
<param name="source" value="xxx.WebUI.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="4.0.50826.0" />
<param name="autoUpgrade" value="true" />
<param name="windowlessmode" value="true" />
</form>
</body>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它应该可以工作,但是好的参数名称是“windowless”,而不是 windowlessmode。
请参阅 http://msdn.microsoft.com/fr -fr/library/cc838156(v=VS.95).aspx
It should work, but the good param name is "windowless", not windowlessmode.
see http://msdn.microsoft.com/fr-fr/library/cc838156(v=VS.95).aspx