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

ÓÃWebBrowserʵÏÖHTML½çÃæµÄÓ¦ÓÃ

HTMLµÄ½çÃæÓÐÒÔÏÂÌØµã£ºÍ¼ÎÄ»ìÅÅ£¬¸ñʽÁé»î£¬¿ÉÒÔ°üº¬Flash¡¢ÉùÒôºÍÊÓÆµµÈ£¬ÊµÏÖͼÎÄÉùÏñµÄ¶àýÌå½çÃæ£¬¶øÇÒÒ×ÓÚ½¨Á¢ºÍά»¤¡£ÁíÍ⣬HTMLµÄÏÔʾ»·¾³Ò»°ã»úÆ÷É϶¼¾ß±¸£¬Í¨³£²»ÐèÒª°²×°¶îÍâµÄÈí¼þ¡£µ±È»£¬HTML½çÃæÒ²ÓÐËüǷȱµÄ·½Ã棬¼´£º½çÃæ¿ØÖÆÄÜÁ¦ÓÐÏÞ£¬´úÂëµ÷ÊÔ²»±ã----ËäÈ»DHTMLÌṩÁ˱ȽÏÇ¿µÄ±à³ÌÌØÐÔ£¬µ«ÊÇ±ÈÆðDelphiµÄ´«Í³µÄ¿ª·¢ÓïÑԺ͹¤¾ßÀ´£¬¶Ô½çÃæµÄ¿ØÖÆÄÜÁ¦£¬ÓÈÆäÊǺÍÊý¾Ý½»»¥Ê±µÄ¿ØÖÆÄÜÁ¦»¹ÊÇÉÔÑ·Ò»³ï¡£
Á˽âÁËÕâÐ©ÌØµã£¬ÎÒÃǾͿÉÒÔÔÚʵ¼ÊÓ¦Óÿª·¢ÖУ¬ÊÊʱµØÑ¡ÔñHTML¼¼Êõ¡£ÏÂÃæ¾Ù¸öÀý×Ó£º
Ò»ÖÖÒÇÆ÷µÄ¹ÜÀí³ÌÐò£¬ÐèÒªÏÔʾ¸ÃÒÇÆ÷µÄ²Ù×÷·½·¨Îĵµ£¬°üº¬ÎÄ×ÖºÍͼƬ£¬²¢ÒªÇó¿ÉÒÔÒþ²Ø»òÏÔʾÎĵµ£¬²¢Äܰ²ÒªÇó´òÓ¡¡£
Õâ¸öÓ¦ÓÃÖУ¬Í¼ÎÄÏÔʾ¡¢Òþ²Ø/ÏÔʾ²¿·ÖÎĵµ¡¢Í¼ÎÄ´òÓ¡µÈÐèÇ󣬶¼ÊÇHTML½çÃæËùÉó¤µÄ£¬Óô«Í³µÄ±íµ¥¿Ø¼þʵÏÖ¼¸ºõÎÞ·¨ÏëÏñ¡£
¡¡
ÓÃʲôʵÏÖHTMLµÄ½çÃæ
ÓÃDelphiʵÏÖHTML½çÃæµÄÓ¦ÓÃÖ÷ÒªÓÐÁ½ÖÖÑ¡Ôñ£ºWebBrowser Control»òMSHTML¡£ÎªÁËŪÇåÁ½ÕßÈçºÎÑ¡Ôñ£¬ÎÒÃÇÏÈÀ´¿´¿´Internet Exporer 4.0¼°ÆäºóÐø°æ±¾µÄÌåϵ½á¹¹£º
IEä¯ÀÀÆ÷Êǽ¨Á¢ÔÚSHDOCVW.DLL×é¼þÖ®Éϵ쬶øSHDOCVW.DLLÔò½¨Á¢ÔÚMSHTML.DLL×é¼þÖ®ÉÏ£¬µ×²ãÔò°üÀ¨½Å±¾ÒýÇæµÈ¡£SHDOCVW.DLLÌṩÁ˶ԻÎĵµ(Active Document)µÄÖ§³Ö----ÀýÈçWordµÈÎĵµ¿ÉÒÔÔÚIEÖÐÏÔʾ£¬²¢Ìṩµ¼º½¡¢in-place*Á¬½Ó¡¢ÊղؼС¢ä¯ÀÀÀúÊ·ºÍ·Ö¼¶ÄÚÈÝÑ¡Ôñ(PICS: Platform for Internet Content Selection)µÈ¹¦ÄÜ¡£SHDOCVW.DLL×é¼þËäȻҲÌṩÁ˺ܶà½Ó¿Ú¿ÉÒÔµ¥¶ÀʹÓ㬵«ÊÇͨ³£ËùÖ¸µÄSHDOCVW.DLL¾ÍÊÇWebBrowser Control¡£MSHTML.DLLÊÇʵÐÐHTML½âÎöºÍ±íÏÖµÄ×é¼þ¡£Ëüͨ¹ýDHTML¶ÔÏóÄ£ÐÍÌṩ¶ÔHTMLÎĵµµÄ·ÃÎÊ¡£ËüʵÏÖÁ˻Îĵµ·þÎñÆ÷½Ó¿Ú£¬¿ÉÒÔͨ¹ýCOM½Ó¿Úµ÷Óá£
²»ÄÑ¿´³ö£¬WebBrowserÔڱȽϸߵIJã´ÎÉÏ£¬ÌṩÁ˸üΪ·á¸»µÄ¹¦ÄÜ£¬Òò´ËÒ»°ãͨ³£±à³Ì¶¼²ÉÓÃWebBrower¿Ø¼þ¡£MSHTMLÖ»ÓÐÔÚÐèÒª½âÎöHTMLÕâÑùµÄÌØÊâÓ¦ÓÃÖУ¬²ÅÍÆ¼öʹÓá£Î¢ÈíµÄMSDNÍøÕ¾ÉÏÌṩÁËÒ»¸öʹÓÃMSHTMLµÄÀý×Ó£ºWalkAll Sample Source Page¡£
£¨*×¢£ºIn-placeÁ´½Ó£¬ÊÇÖ¸µã»÷HTMLÁ¬½Óʱ£¬ÔÚÏàͬµÄWebBrowserʵÀýÖÐÏÔʾÁ¬½ÓµÄHTMLÎĵµ¡£Èç¹û½öʹÓÃMSHTML.DLL£¬µã»÷Á´½Ó½«µ¼ÖÂÔÚеÄä¯ÀÀÆ÷ʵÀýÖдò¿ªÁ´½ÓµÄÎĵµ¡££©
¡¡
ÈçºÎ·ÃÎÊHTMLÒ³ÃæµÄÄÚÈÝ
Ê×ÏÈ£¬ÔÚDelphi 7.0×é¼þÃæ°åµÄInternetÒ³ÉÏ£¬°ÑTWebBrowser×é¼þ·Åµ½±íµ¥ÉÏ£¬²¢ÊÖ¶¯°ÑMSHTML¼ÓÈëµ½UsesÁбíÖС£
ͨ¹ýÖ´ÐÐÒÔÏÂÓï¾ä×°ÔØHTMLÎĵµµ½WebBrowserÖнøÐÐÏÔʾ£º
WebBrowser1.Navigate(GetCurrentDir +


Ïà¹ØÎĵµ£º

C#ÖÐʵÏÖWebBrowser¿Ø¼þµÄHTMLÔ´´úÂë¶Áд

³ÃÖÜÄ©ÏëÕÛÌÚÒ»ÏÂǶÈëASP.NETµÄWinForm³ÌÐò
ÐèÒªÓõ½WebBrowser¿Ø¼þµÄHTMLÔ´Âë¶Áд
¾Í°ÑÒÔǰµÄһЩ´úÂëÆ¬¶ÏÒÆÖµµ½C#ÏÂ
˳±ã·¢¸öÌû×Ó±¸Íü£¬ºÇºÇ
  
˼·ÆäʵºÜ¼òµ¥£¬Ö±½Óͨ¹ýdocument.documentElement.outerHTML
»òÕßʹÓÃIPersistStreamInit½Ó¿ÚÖ±½Ó¶ÔÁ÷½øÐд¦Àí
ǰÕßÎҾͲ»·Ï»°ÁË£¬ºóÕßʵÏÖ·½·¨ÈçÏÂ
&nbs ......

HTMLתPDF£¨C# itextsharp£©

Ò»¡¢ ÐèÇ󣺽«HTMLתPDF´òÓ¡¡£WebÏîÄ¿ÖÐ×ÜÊÇÓÐÕâÑùµÄÐèÇ󣬺ÜÊÇÈÃÈË¿àÄÕ¡£
¶þ¡¢ ·ÖÎö£ºÈçºÎÍê³ÉÕâ¸ö¹¤×÷£¿
1¡¢ ÐèÒª½âÎöHTML£¬È»ºóÀûÓÃitextsharp»æÖÆpdfÎĵµ¡£½âÎöHTMLÊÇÒ»¸öºÜÄÑÍê³ÉµÄÈÎÎñ£¬¸÷¸öä¯ÀÀÆ÷¶ÔHTMLµÄ½âÎöÎ廨°ËÞÍÖªµÀÕâ²»ºÃ½â¾ö¡£ÕâÌõ·²»ºÃ×ߣ¬µ«Ò²ÊÇ¿ÉÒÔÍê³ÉµÄ£¬Í¨¹ýwebbrowserÀà¿ÉÒÔ½âÎöHTML»ñÈ¡¸÷¶ÔÏóµ ......

HTML µÄDOCTYPE ±êÇ©

HTML <!DOCTYPE> ±êÇ©
¶¨ÒåºÍÓ÷¨
<!DOCTYPE> ÉùÃ÷λÓÚÎĵµÖеÄ×îÇ°ÃæµÄλÖ㬴¦ÓÚ <html> ±êǩ֮ǰ¡£´Ë±êÇ©¿É¸æÖªä¯ÀÀÆ÷ÎĵµÊ¹ÓÃÄÄÖÖ HTML »ò XHTML ¹æ·¶¡£
¸Ã±êÇ©¿ÉÉùÃ÷ÈýÖÖ DTD ÀàÐÍ£¬·Ö±ð±íʾÑϸñ°æ±¾¡¢¹ý¶É°æ±¾ÒÔ¼°»ùÓÚ¿ò¼ÜµÄ HTML Îĵµ¡£
ÒÔÏÂÃæÕâ¸ö <!DOCTYPE> ±êǩΪÀý£º
<!DOCTYP ......

html divµÄ×Ô¶¯ÉìËõ

.winstonDivClass{ overflow:hidden; zoom:1; }

Èç¹û¸¸divÐèÒª¸ù¾Ý×ÓdivµÄ´óСµÄ±ä»¯¶ø±ä»¯£¬ÄÇôÕâ¸ö¸¸div
ÐèÒª¼ÓÉÏclass="winstonDivClass"
,ÇҸø¸div²»ÄÜÖ¸¶¨heightÊôÐÔ£¬ÆäÖеÄ×ÓdivµÄpositionÊôÐÔ×îºÃΪrelative;
ÓÃzoom:1;´¥·¢ieµÄhaslayout,ÓÃÀ´Ç帡¶¯
¶øoverflow¿ÉÒÔ´¥·¢ie7µÄhaslayout£¬²¢ÔÚFF ......

html»ù±¾ÖªÊ¶»ã×Ü±í£¨txt£©

<html>
<head>
<title>text-font</title>
</head>
<body>
 ************************<font size="7" color="red">±êÌâÕ½Ú</font>*************************<br>
 
 Õý³£Îı¾
 <h1>Ò»¼¶±êÌâ</h1>
 <h2 align=righ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ