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

HTML×ܽá

 
±ê Ç©      ÄÚ ÈÝ ±¸ ×¢
»ù ±¾ ±ê Ç© ËùÓÐHTMLÎļþ¶¼ÓеÄ
<html>……</html> ±íʾÎļþÀàÐÍΪHTMLÎĵµ
<head>……</head> ÉèÖÃÎĵµÃèÊö¼°ÆäËû²»ÔÚWEBÍøÒ³ÉÏÏÔʾµÄÐÅÏ¢ÍøÒ³µÄ±êÌ⣬Ñùʽ¶¨Ò壬Script
<body>……</body> HTMLÎĵµµÄÖ÷Ì壨ҳÃæµÄʵ¼ÊÄÚÈÝ£©
±ê Ìâ ±ê Ç© ¡¡
<title>……</title> ÔÚ±êÌâÀ¸ÖÐÏÔʾµÄÌâÄ¿£¨·ÅÔÚ<head></head>ÄÚ£©
<style>……</style> ÔÊÐí°üº¬Ñùʽ±í£¨CSS£©ÐÅÏ¢
Ò³ Ãæ Êô ÐÔ ±ê Ç© <body>……</body>±êÇ©µÄÀ©Õ¹ÊôÐÔ¡£Ê¹ÓÃÏê½â
<body bgcolor=#……> ÉèÖñ³¾°ÑÕÉ«£¬ÓÃÃû×Ö»òÊ®Áù½øÖÆÖµ
<body text=#……> ÉèÖÃÎı¾ÎÄ×ÖÑÕÉ«£¬ÓÃÃû×Ö»òÊ®Áù½øÖÆÖµ
ÎÄ ±¾ ±ê Ç© ¡¡
<h1>……</h1> ´´½¨×î´óµÄ±êÌâ
<h6>……</h6> ´´½¨×îСµÄ±êÌâ
<b>……</b> ´´½¨ºÚÌå×Ö
<i>……</i> ´´½¨Ð±Ìå×Ö
<font size=value></font> ÉèÖÃ×ÖÌå´óС£¬´Ó1µ½7
<font color=……></font> ÉèÖÃ×ÖÌåµÄÑÕÉ«£¬Ê¹ÓÃÃû×Ö»òÊ®Áù½øÖÆÖµ
Á´ ½Ó ¡¡
<a href="/URL"></a> ´´½¨Ò»¸ö³¬Á´½Ó
<a href="mailto:EMAIL"> </a> ´´½¨Ò»¸ö×Ô¶¯·¢Ë͵ç×ÓÓʼþµÄÁ´½Ó
<a href="#NAME"></a> ´´½¨Ò»¸öÖ¸ÏòλÓÚÎĵµÄÚ²¿°ÐλµÄÁ´½Ó
¸ñ ʽ ÅÅ °æ ¡¡
<p> ´´½¨Ò»¸öеĶÎÂä
<p align=……> ½«¶ÎÂä°´×ó¡¢ÖС¢ÓÒ¶ÔÆë
<br> ²åÈëÒ»¸ö»Ø³µ»»Ðзû
<ol>……</ol> ´´½¨Ò»¸ö±êÓÐÊý×ÖµÄÁбí
<li> ·ÅÔÚÿ¸öÊý×ÖÁбíÏî֮ǰ£¬²¢¼ÓÉÏÒ»¸öÊý×Ö
<ul>……</ul> ´´½¨Ò»¸ö±êÓÐÔ²µãµÄÁбí
<li> ·ÅÔÚÿ¸öÔ²µãÁбíÏî֮ǰ£¬²¢¼ÓÉÏÒ»¸öÔ²µã
<div align=……> Ò»¸öÓÃÀ´ÅÅ°æ´ó¿éHTML¶ÎÂäµÄ±êÇ©£¬Ò²ÓÃÓÚ¸ñʽ»¯±í
ͼ ÐÎ Ôª ËØ ¡¡
<img src="/name"> Ìí¼ÓÒ»¸öͼÏñ
<img src="/name" align=value> ÅÅÁжÔÆëÒ»¸öͼÏñ£º×óÖÐÓÒ»òÉÏÖÐÏÂ
<img src="/name" border=value> ÉèÖÃΧÈÆÒ»¸öͼÏñµÄ±ß¿òµÄ´óС
<hr> ¼ÓÈëÒ»ÌõˮƽÏß
<hr size


Ïà¹ØÎĵµ£º

²âÊÔÓï·¨¸ßÁÁµÄ C# ´úÂëµÄ html fragment Éú³É

²âÊÔÓï·¨¸ßÁÁµÄ C# ´úÂëµÄ html fragment Éú³É:
ÓÃcsdn blog API ·¢²¼.
ÏÂÃæÊÇ:
public class HtmlWriter
{
   static Dictionary _colors;
   static int _colorNum;
   static StringBuilder _colorString;

¿ÎÄÚÍâhtmlС½á

  
u
<BODY></BODY>±ê¼ÇµÄÊÇÍøÒ³µÄÖ÷Ì壺ËüµÄÊôÐÔÓУºtext:Éè¼ÆÒ³ÃæÎÄ×ÖµÄ×ÖÌåÑÕÉ«£» Bgcolor:É趨ҳÃæµÄ±³¾°ÑÕÉ«£»Background:
É趨ҳÃæµÄ±³¾°Í¼Ïñ£» BGPROPERTIES£ºÉ趨ҳÃæµÄͼƬÊÇ·ñËæ×ÅÒ³Ãæ¹ö¶¯¶ø¹ö¶¯£»Link:É趨µÄÁ´½ÓĬÈÏÑÕÉ«£»Alink£ºÉ趨Êó±ê½Ó½üʱµÄÁ´½ÓÑÕÉ«£»Vlink£ºÉ趨ÒѾ­·ÃÎʹýµÄÁ ......

ʹÓô¿CÔÚ×Ô¼ºµÄ´°¿ÚÖÐǶÈëHTML¿Ø¼þ

±ê Ìâ: ¡¾·­Òë¡¿¹ýÄêÁË£¬Ï×ÉÏСÀñ - ʹÓô¿CÔÚ×Ô¼ºµÄ´°¿ÚÖÐǶÈëHTML¿Ø¼þ
×÷ Õß: xiep
ʱ ¼ä: 2010-01-22,13:42:29
Á´ ½Ó: http://bbs.pediy.com/showthread.php?t=105702
Ç°¶Îʱ¼äÒòΪÏîÄ¿ÐèÒª£¬ËùÒÔ·­ÒëÁËÕâƪ£¬Ï£Íû¶ÔijЩÈËÓÐÓá£ÓÉÓÚʱ¼ä²Ö´Ù£¬´íÎóÖ®´¦ÔÚËùÄÑÃ⣬Çë²»ÁßÖ¸³ö¡£
Áí£ºbrowser libΪÎÒ¸ÄдµÄÒ»¸ö¾ ......

asp.net »ñÈ¡html¿Ø¼þµÄÖµµÄ´úÂë

asp.net »ñÈ¡html¿Ø¼þµÄÖµµÄ´úÂëÈçÏ£º
WebForm1.aspx£º
   < INPUT ID="TXT"  TYPE="TEXT" RUNAT="SERVER" VALUE="AAAAAA">  
    < INPUT TYPE="BUTTON" RUNAT="SERVER" VALUE="BTNTEST"  ID="BUTTON1"&nb ......

html½âÎö ÍøÒ³ÑÕÉ«±àÂë±í

ÍøÒ³Ô¤¶¨ÒåÑÕÉ«±àÂëÁбí
const unsigned int gl_color_value[] = {
 0xF5F5DC,
 0x000000,
 0xFF0000,
 0xD2B48C,
 0xFFD700,
 0x008080,
 0xF0E68C,
 0x00FF00,
 0x00FFFF,
 0x0000FF,
 0x00FFFF,
 0xFF7F50,
 0x008000,
 0xFDF5E6 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ