我已经在这里阅读了很多关于此的文章,这是我想出的代码。
有人可以告诉我为什么 <table>
不覆盖在 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>
最佳答案
它应该可以工作,但好的参数名称是“windowless”,而不是 windowlessmode。
参见 http://msdn.microsoft.com/fr-fr/library/cc838156(v=VS.95).aspx
关于silverlight 应用程序中的 html 覆盖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8809781/