silverlight 应用程序中的 html 覆盖

标签 html css silverlight overlay z-index

我已经在这里阅读了很多关于此的文章,这是我想出的代码。 有人可以告诉我为什么 <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/

相关文章:

jquery - 在悬停时为 switchClass 创建验证,以便动画与鼠标进入和离开 div 时相关联

javascript - 如何访问div内的视频元素

html 表格重置所有默认 css

silverlight - 内容控制内容大小以填充 Silverlight 4

python - 自定义 Django 登录页面不呈现登录表单

html - td/th 上的百分比宽度不起作用(jsfiddle)

javascript - 如何使用 addEventListener(webkitTransitionEnd) 在 window.close() 之前延迟?

javascript - 转换(剪切)可拖动的 div

c# - C#/Silverlight 中 System.out.println() 的等效项是什么?

c# - IsolatedStorageFileStream 错误不允许操作