0
已经阅读了许多关于此的文章,这里是我提出的代码。 有人可以告诉我为什么<table>
不覆盖SL应用程序的顶部?我知道我发布的表没有任何可见的内容,但是在我的代码中它确实存在。Silverlight应用程序中的html覆盖
<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>
[US MSDN链接](http://msdn.microsoft.com/en-us/library/cc838156(V = VS.95)的.aspx)。此外,根据这个http://forums.silverlight.net/t/16731.aspx也包括'' – MikeM 2012-01-10 20:23:04
在我所有使用电脑的时间里,我可以诚实地说我从来没有停止为自己的愚蠢感到惊讶。当然这很简单,我甚至没有想过要检查它是否正确。谢谢。 – Josh 2012-01-11 00:56:03