»ù±¾½á¹¹±êÇ©:
<HTML>,±íʾ¸ÃÎļþΪHTMLÎļþ
<HEAD>,°üº¬ÎļþµÄ±êÌâ,ʹÓõĽű¾,Ñùʽ¶¨ÒåµÈ
<TITLE>---</TITLE>,°üº¬ÎļþµÄ±êÌâ,±êÌâ³öÏÖÔÚä¯ÀÀÆ÷±êÌâÀ¸ÖÐ
</HEAD>,<HEAD>µÄ½áÊø±êÖ¾
<BODY>,·ÅÖÃä¯ÀÀÆ÷ÖÐÏÔʾÐÅÏ¢µÄËùÓбêÖ¾ºÍÊôÐÔ,ÆäÖÐÄÚÈÝÔÚä¯ÀÀÆ÷ÖÐÏÔʾ.
</BODY>,<BODY>µÄ½áÊø±êÖ¾
</HTML>,<HTML>µÄ½áÊø±êÖ¾
ÆäËüÖ÷Òª±êÇ©,ÒÔÏÂËùÓбêÖ¾ÓÃÔÚ<BODY></BODY>ÖÐ:
<A,HREF="…"></A>,Á´½Ó±êÖ¾,"…"ΪÁ´½ÓµÄÎļþµØÖ·
<IMG,SRC="…">,ÏÔʾͼƬ±êÖ¾,"…"ΪͼƬµÄµØÖ·
<BR>,»»ÐбêÖ¾
<P>,·Ö¶Î±êÖ¾
<B></B>,²ÉÓúÚÌå×Ö
<I></I>,²ÉÓÃбÌå×Ö
<HR>,ˮƽ»Ïß
<TABLE></TABLE>,¶¨Òå±í¸ñ,HTMLÖÐÖØÒªµÄ±êÖ¾
<TR></TR>,¶¨Òå±í¸ñµÄÐÐ,ÓÃÔÚ<TABLE></TABLE>ÖÐ
<TD></TD>,¶¨Òå±í¸ñµÄµ¥Ôª¸ñ,ÓÃÔÚ<TR></TR>ÖÐ
<FONT></FONT>,×ÖÌåÑùʽ±êÖ¾
ÊôÐÔ:
ÊôÐÔÊÇÓÃÀ´ÐÞÊαêÖ¾µÄ,ÊôÐÔ·ÅÔÚ¿ªÊ¼±êÖ¾ÄÚ.
Àý:ÊôÐÔbgcolor="BLACK"±íʾ±³¾°É«ÎªºÚÉ«.
ÒýÓÃÊôÐÔµÄÀý×Ó:
<BODY,bgcolor="BLACK"></BODY>±íʾҳÃæ±³¾°É«ÎªºÚÉ«;
<TABLE,bgcolor="BLACK"></TABLE>±íʾ±í¸ñ±³¾°É«ÎªºÚÉ«.
³£ÓÃÊôÐÔ:
¶ÔÆëÊôÐÔ,·¶Î§ÊôÐÔ:
ALIGN=LEFT,×ó¶ÔÆë(ȱʡֵ),WIDTH=ÏóËØÖµ»ò°Ù·Ö±È,¶ÔÏó¿í¶È.
ALIGN=CENTER,¾ÓÖÐ,HEIGHT=ÏóËØÖµ»ò°Ù·Ö±È,¶ÔÏó¸ß¶È.
ALIGN=RIGHT,ÓÒ¶ÔÆë.
É«²ÊÊôÐÔ:
COLOR=#RRGGBB,Ç°¾°É«,²Î¿¼É«²Ê¶ÔÕÕ±í.
BGCOLOR=#RRGGBB,±³¾°É«.
<center>±íʾ¾ø¶Ô¾ÓÖÐ.
<table></table>±í¸ñ±êʶµÄ¿ªÊ¼ºÍ½áÊø.
ÊôÐÔ:
cellpadding=ÊýÖµµ¥Î»ÊÇÏñËØ,¶¨Òå±íÔªÄÚ¾à
cellspacing=ÊýÖµµ¥Î»ÊÇÏñËØ,¶¨Òå±íÔª¼ä¾à
border=ÊýÖµµ¥Î»ÊÇÏñËØ,¶¨Òå±í¸ñ±ß¿ò¿í¶È
width=ÊýÖµµ¥Î»ÊÇÏñËØ»ò´°¿Ú°Ù·Ö±È,¶¨Òå±í¸ñ¿í¶È
background=ͼƬÁ´½ÓµØÖ·,¶¨Òå±í¸ñ±³¾°Í¼
<tr></tr>±í¸ñÖÐÒ»¸ö±í¸ñÐеĿªÊ¼ºÍ½áÊø;
<td></td>±í¸ñÖÐÐÐÄÚÒ»¸öµ¥Ôª¸ñµÄ¿ªÊ¼ºÍ½áÊø
ÊôÐÔ:
Colspan="",µ¥Ôª¸ñ¿çÔ½¶àÁÐ;
Rowspan="",µ¥Ôª¸ñ¿çÔ½¶àÐÐ;
Width="";¶¨Òå±í¸ñ¿í¶È
Height="";¶¨Òå±í¸ñ¸ß¶È
Align="";¶ÔÆ뷽ʽ
Valign="";
Border="",±ß¿ò¿í¶
²âÊÔÓï·¨¸ßÁÁµÄ C# ´úÂëµÄ html fragment Éú³É:
ÓÃcsdn blog API ·¢²¼.
ÏÂÃæÊÇ:
public class HtmlWriter
{
static Dictionary _colors;
static int _colorNum;
static StringBuilder _colorString;
*/
-->
Author:
Thinkhy
Date:
2010.04.11.
Url:
http://www.disandu.com/?p=714
Keyword:
HTML¿ÕÔªËØ DIV XSLT jQuery
½ñÌìÓиöHTML¿ÕÔªËصÄÎÊÌâÕÛÌÚÁËÎÒÁ½¸öСʱ£¬ÎÊÌâÊÇÕâÑùµÄ£¬ÎÒÒª´¦ÀíÒ»¶ÎÃèÊö½á¹¹»¯Îı¾µÄHTMLƬ¶Ï£º
£¼div class='paper'>
£¼div class='questio ......
ÍøÒ³Ô¤¶¨ÒåÑÕÉ«±àÂëÁбí
const unsigned int gl_color_value[] = {
0xF5F5DC,
0x000000,
0xFF0000,
0xD2B48C,
0xFFD700,
0x008080,
0xF0E68C,
0x00FF00,
0x00FFFF,
0x0000FF,
0x00FFFF,
0xFF7F50,
0x008000,
0xFDF5E6 ......
<script language="C#" runat="server">
void Page_Load(Object sender, EventArgs e) {
Message.InnerHtml = "Welcome to ASP.NET";
}
</script>
...
<span id="Message" style="font-size:24" runat="server"/> ......
<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 ......