Silverlight 4 µÄHost HTML¹¦ÄܽéÉÜ
Silverlight 4й¦ÄÜ: Host HTML Content.
Õâ¸öй¦ÄÜͦ²»´íµÄ£¬¿ÉϧµÄÊÇËüÖ»ÄÜÊÇÄã°ÑSilverLightÓ¦ÓóÌÐò°²×°µ½¿Í»§¶Ë²ÅÄÜʹÓ㬲»Ã÷°×ΪʲôSilverLight ToolkitÍŶӲ»ÈÃËüÄܹ»ÔÚä¯ÀÀÆ÷ÖÐÒ²¿ÉÒÔÓá£
¿´Á˶ÎÊÓƵ£¬ËüÖ÷ÒªÊǽ²ÁËÈý¸öÓ¦Óã¬ÆäËü»¹ÓкܶàʹÓÃÕâ¸ö¹¦Äܵķ½·¨Äã¿ÉÒÔÊÔ×ÅÔÚÏÂÃæ¸øÎÒÁôÑÔ£¬´ó¼ÒÒ»Æðѧϰ¡£
Ê×ÏÈÊÇ´´½¨Ò»¸öSL 4µÄÓ¦ÓóÌÐò£¬ÆðÃû×ÖΪHostHTMLContent;ÈçÏÂͼ£º
È»ºóÔÚMainPage.xamlÒ³ÃæµÄ¸ùGridÏÂÌí¼ÓÒ»¸öStackPanel,¾ÓÖÐÏÔʾ£¬½Ó×ÅÊÇÔÚStackPanelÖзÅÒ»¸öGridÀ´ÏÔʾHTML Content£¬Õâ¸öGrid¶¨ÒåΪ4ÐÐÁ½ÁÐ:
<Grid x:Name="LayoutRoot" Background="Gray">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="ControlSamples">
<Grid Width="600">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="520*"/>
<ColumnDef
Ïà¹ØÎĵµ£º
<html:select property='optdwdm' style='width:230' onchange='changedw(this)'>
<html:options collection='dwlist' property='dm' labelProperty='mc' />
</html:select>
ÔÚ±êÇ©µÄ ONCHANGE ʼþÀïÃ涨ÒåÒ»¸ö changedw(this)
È»ºó¿ÉÒÔͨ¹ýÒÔÏ´úÂë»ñÈ¡ html:select Ñ¡È¡µÄ VALUE ......
Ò»¡¢img+ÎÄ×Ö ÔÚÒ»¸ödiv ÀïÃæÈçºÎ¾ÓÖжÔÆ룿
imgºÍÎı¾ÊÇÁ½ÖÖ²»Í¬µÄ½Úµã ËùÒÔÓõķ½·¨Ò²²»Ò»Ñù
ÎÄ×ÖÖ÷ÒªÒÀ¿¿ ¸¸½ÚµãµÄÐиßÀ´¾ÓÖÐ
¶øimgÐèÒªµÄÊÇ×ÔÉíµÄ´¹Ö±ÖÐÆëÊôÐÔ
div {line-heiht£º25px;height:25px;}
div img {vertical-align:middle;}
ÀýÈ磺
<div id="buttons">
<img src= ......
1.ʲôÊÇ HTML Îļþ£¿
HTML Ö¸³¬Îı¾±êÇ©ÓïÑÔ¡£
HTML ÎļþÊÇ°üº¬Ò»Ð©±êÇ©µÄÎı¾Îļþ¡£
ÕâЩ±êÇ©¸æËß WEB ä¯ÀÀÆ÷ÈçºÎÏÔʾҳÃæ¡£
HTML Îļþ±ØÐëʹÓà htm »òÕß html ×÷ΪÎļþÀ©Õ¹Ãû¡£
HTML Îļþ¿ÉÒÔͨ¹ý¼òµ¥µÄÎı¾±à¼Æ÷À´´´½¨¡£
2.HTML ÔªËØ
HTML ÎĵµÊÇÓÉ HTML ÔªËع¹³ÉµÄÎı¾Îļþ¡£
HTML ÔªËØÊÇͨ¹ýʹÓà HTML ......
HTMLÎĵµÖ÷ÒªÓÉÈý²¿·Ö¹¹³É£ºÐò(Prologue)¡¢Í·£¨Head£©ºÍÖ÷Ìå(Body)¡£
“Ðò”λÓÚHIMLÎĵµµÄµÚÒ»ÐУ¬ËüµÄ×÷ÓÃÊǰѱàдÕâ¸öH1MLÎĵµÊ¹ÓõÄHTML
°æ±¾ºÅ¸æË߸øä¯ÀÀÆ÷¡£ÐòÔÚHTML3£®o°æ±¾Ö®Ç°½ÏÉÙʹÓá£
“Í·”ÓÃÀ´±êʶÕû¸öHTMLÎĵµµÄÊôÐÔ£¬ËüÓëÎÒÃdz£ÓõÄEmailÖе ......