Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÔÚhtmlÖÐincludeÒ»¸öÎļþÄÚÈݵļ¸ÖÖ·½·¨

ÔÚhtmlÎļþÒýÈëÆäËühtmlÎļþµÄ¼¸ÖÖ·½·¨
¼ò½é£ºÔÚÂÛ̳Öг£³£ÓÐÍøÓÑÎʵ½£¬¿ÉÒÔÔÚÒ»¸öhtmlµÄÎļþµ±ÖжÁÈ¡ÁíÒ»¸öhtmlÎļþµÄÄÚÈÝÂ𣿴ð°¸ÊÇÈ·¶¨µÄ£¬¶øÇÒ·½·¨²»Ö»Ò»ÖÖ£¬ÔÚÒÔÇ°ÎÒÖ»»áʹÓÃiframeÀ´ÒýÓ㬺óÀ´·¢ÏÖÁËÁíÍâµÄ¼¸ÖÖ·½·¨£¬ÄǽñÌì¾Í×ܽáÕ⼸ÖÖ·½·¨Èôó¼Ò²Î¿¼Ò»Ï£¬±¾È˾õµÃµÚÈýÖÖ·½Ê½½ÏºÃ£¡
1.IFrameÒýÈ룬¿´¿´ÏÂÃæµÄ´úÂë
[´úÂë] <IFRAME NAME="content_frame" width=100% height=30 marginwidth=0 marginheight=0 SRC="import.htm" ></IFRAME>
Äã»á¿´µ½Ò»¸öÍⲿÒýÈëµÄÎļþ£¬µ«»á·¢ÏÖÓÐÒ»¸öÀàËÆÍâ¿òµÄ¶«Î÷½«Æä°üΧ£¬¿ÉʹÓÃ
[´úÂë] <iframe name="content_frame" marginwidth=0 marginheight=0 width=100% height=30 src="import.htm" frameborder=0></iframe>
µ«Äã»á·¢ÏÖ»¹»áÓеãÎÊÌ⣬¾ÍÊDZ³¾°É«²»Í¬£¬ÄãÖ»ÒªÔÚÒýÈëµÄÎļþimport.htmÖÐʹÓÃÏàͬµÄ±³¾°É«Ò²¿ÉÒÔ£¬µ«Èç¹ûÄãʹÓõÄÊÇIE5.5µÄ»°£¬¿ÉÒÔ¿´¿´Õâƪ¹ØÓÚ͸Ã÷É«µÄÎÄÕ Èç¹ûÏëÒýÈëµÄÎļþ¹ý³¤Ê±²»³öÏÖ¹ö¶¯ÌõµÄ»°ÔÚimport.htmÖеÄbodyÖмÓÈëscroll=no
2.<object>·½Ê½
[´úÂë] <object style="border:0px" type="text/x-scriptlet" data="import.htm" width=100% height=30></object>
3.BehaviorµÄdownload·½Ê½
[´úÂë]
<span id=showImport></span>
<IE:Download ID="oDownload" STYLE="behavior:url(#default#download)" />
<script>
function onDownloadDone(downDate){
showImport.innerHTML=downDate
}
oDownload.startDownload('import.htm',onDownloadDone)
</script>
IE ÓÀԶδÀÏ£¬DHTMLÐÐΪ¶ÀºÃ
±¾ÎĽ«½éÉÜ IE ä¯ÀÀÆ÷µÄÒ»¸öÖØҪй¦ÄÜ£ºDHTML ÐÐΪ£¬ËüÊÇ IE 5.x °æ±¾ÖÐÃâ·ÑÌṩµÄ¹¦ÄÜ¡£DHTML ÐÐΪ¿ÉÒÔΪ¶¯Ì¬ HTML ÔªËØ´´½¨×Ô°üº¬µÄ¸ñʽ¶¨Òå¡£ÔÚ Internet Explorer 4.0 ÀÈç¹ûʹÓÃÁ½¸öÐÐΪÏàËƵÄÔªËØ£¬³ýÁË·Ö±ð¶¨ÒåËüÃÇÒÔÍ⣬Äã±ðÎÞÆäËûµÄÑ¡Ôñ·½·¨¡£5.x °æ±¾ÔÊÐíͨ¹ýÒ»¸ö½Ð×÷ Behavior µÄ¸ñʽÉè¼Æ¡¢¶¨Òå¶à¸öÔªËØ£¬Behavior ÔÚÃæÏò¶ÔÏóÓïÑԵķ½Ãæ¸ø javascript ´øÀ´ÁËһϵÁиÅÄÀýÈçÒþ²Øϸ½Ú¡¢·â×°¡¢´úÂ븴Óú͹ý³Ì»¯½Ó¿Ú¡£
¡¡¡¡ ÎÒÃǽ«Í¨¹ýÒ»¸ö“ÏÔʾһ¸ö²»Í£ÉÁ¶¯µÄת¶¯×ãÇò”µÄÀý×Ó½âÊÍ Behavior¡£ÎÒÃÇÏȲ»Í¨¹ý Behavior ʵÏÖËü£¬È»ºóÑÝʾÈçºÎͨ¹ý Behavior ʵÏÖͬÑùµÄÈÎÎñ¡£×îºó½«Ç¿µ÷ÕâÑù×öµÄÓŵ㡣
¡¡¡¡ ÕâÀïÊÇ Behavior scriptlet ºÍ HTML Ò³Ãæ µÄ´úÂëÇåµ¥¡£


Ïà¹ØÎĵµ£º

HTMLÓï·¨´óÈ«

<! - - ... - -> 註½â
 <!> ÅÜ馬燈
 <marquee>...</marquee>ÆÕͨ捲動
 <marquee behavior=slide>...</marquee>»¬動
 <marquee behavior=scroll>...</marquee>預設捲動
  ......

JavascriptʵÏÖhtml¿éÓï·¨¸ßÁÁ£¨ËÑË÷ºó¹Ø¼ü×Ö¸ßÁÁ£©

dp.SyntaxHighlighter
dp.SyntaxHighlighter£¬ÕⶫÎ÷yahoo¶¼ÔÚÓÃËü£¬Ö§³Ö¶àÖÖÓïÑÔ¡£
Ö»ÐèÒª½«´úÂë·Åµ½<textarea>±êÇ©ÄÚ£¬Ëü¾Í¿ÉÒÔ×Ô¶¯¸ù¾ÝclassÖ¸¶¨µÄÓïÑÔÀ´¶ÔtextareaÄÚÈݽøÐÐ×ÅÉ«£¬»¹ÌṩÁËÐкš¢´òÓ¡µÈ¹¦ÄÜ¡£È磺
Xml´úÂë
<TEXTAREA class=java name=code><br/>    // code here ......

HTMLÖÐSelect²»ÓÃDisabledʵÏÖReadOnlyµÄÁíÀàʵÏÖ

HTMLÖÐSelect²»ÓÃDisabledʵÏÖReadOnlyµÄÁíÀàʵÏÖ.
<select onbeforeactivate="return false" onfocus="this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()">
<option>1</option>
</select>   ......

.net + html ͬÒâ×¢²á

.net ¹¦ÄÜÊ®·ÖÇ¿´ó£¬Æäʵ¿ÉÒÔÖ±½ÓÔÚÀïÃæдһЩhtmlµÄ´úÂ룬±ÈÈçÏñÕâÑù
<asp:CheckBox ID="checksingup" runat="server" Text='I have read and agree to <a href="abc.aspx">This is ABC web</a>'   onclick="ValidateTandCs" />
ÕâÖÖ¿ÉÒÔÓÃÓÚ×¢²áʱµÄ³¬Á´½Óµ½±ðµÄµØ·½£¬µ±È»¿ÉÒÔ·¢»ÓÏëÏñ£¬Ë ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ