2010-04-14 8 views
1

Je voudrais qu'un IFrame apparaisse au-dessus de mon contrôle Silverlight (de haut en bas non Z-Order).Le fait de placer un IFrame avant que l'objet Silverlight dans la page aspx échoue à rendre le contrôle Silverlight

Si je place l'élément IFrame avant l'élément Formulaire seul le IFrame apparaît sur mon écran.

Pour reproduire créer une nouvelle application Web Silverlight 3.0. En vous TestPage.aspx ajoutez simplement:

<iframe width="600" height="200" src="http://www.google.com" />

avant que les lignes

<form id="form1" runat="server" style="height:50%"> 
    <div id="silverlightControlHost"> 
     <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> 

Ma balise body complète se lit comme suit en tant que telle ...

<body> 
<iframe width="600" height="200" src="http://www.google.com" />  
<form id="form1" runat="server" style="height:50%"> 
<div id="silverlightControlHost"> 
    <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> 
<param name="source" value="ClientBin/SilverlightAndIFrame.xap"/> 
<param name="onError" value="onSilverlightError" /> 
<param name="background" value="white" /> 
<param name="minRuntimeVersion" value="3.0.40818.0" /> 
<param name="autoUpgrade" value="true" /> 
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40818.0" style="text-decoration:none"> 
    <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/> 
</a> 
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div> 
</form> 

Malheureusement seulement l'IFrame apparaît.

Répondre

0

iframes nécessitent des balises de fermeture (fermeture avec /> ne fonctionne pas) essayer: -

<iframe width="600" height="200" src="http://www.google.com"></iframe> 
+0

Merci Anthony. Stupide HTML;) – Justin

Questions connexes