我正在尝试让浏览器在调整大小小于我的SL应用程序时显示滚动条。我通过在html中设置object标签的宽度和高度来实现这一点。问题是,现在应用程序周围出现黑色1px边框。我已经在标签和包含标签上尝试了各种属性和样式,但无法让它消失。有什么想法吗?
<body>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="1230" height="830" style="border-style:none">
<param name="source" value="Silverlight.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="4.0.50401.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" 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>
</body>
答案 0 :(得分:0)
<iframe id="_sl_historyFrame" style="overflow:auto !Important;visibility:hidden;height:0px;width:0px;border:0px"></iframe>