css - How to resize a silverlight object? -
I am trying to make Silverlight objects accountable in browser size changes. I tried to provide an object with an ID in CSS, and I also changed the width and height values for both auto
and %
. The documentation is unclear, but says that it is allowed, so I wonder why does not it work?
& lt; Div id = "silverlightcontrolhost" & gt; & Lt; Object Data = "Data: App / X-Silverlight-2," Type = "App / X-Relilt-2" width = "980 pixels" height = "500px" & gt; & Lt; Ultimate Name = "Source" Value = "Smooth Streaming Player. Expose" /> & Lt; Param name = "onError" value = "onSilverlight error" /> & Lt; Param name = "background" value = "white" /> & Lt; Param name = "minRuntimeVersion" value = "4.0.50401.0" /> & Lt; Param name = "InitParams" value = "selectedcaptionstream = textstream_eng, mediaurl = http: //cam.shockradio.co.uk/studiolive.isml/manifest" /> & Lt; A href = "http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style = "text-decoration: none" & gt; & Lt; Img src = "http://go.microsoft.com/fwlink/?LinkId=161376" alt = "get Microsoft Silverlight" style = "border-style: none" /> & Lt; / A & gt; & Lt; / Object & gt; & Lt; / Div & gt;
Some things should be wrong
Do you want your silverlight object to be full scream?
- You should set the attribute for the HTML body with CSS:
& lt; Style type = "text / css" & gt; Html, body {height: 100%; Margin: 0; Hidden flurry; } # Wrapper {min-height: 100%; } & Lt; / Style & gt; User Percentage To Fit In Your Object:
Comments
Post a Comment