ÍøÂçѧԺ

w3pop.com :: ÍøÂçѧԺ :: WEBÉè¼Æ×ÛºÏ :: HTML»ù´¡

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

WEBÉè¼Æ×ÛºÏ
meta±êǩ֮Ïê½â
css²¼¾ÖÖеľÓÖÐÎ..
CSSµÄÊ®°Ë°ã¼¼ÇÉ
_blank¿ªÐ´°¿Ú²»..
ÈçºÎÒÔ¼°ºÎʱʹÓÃ..
×óÖÐÓÒ3À¸²¼¾ÖÖÐ×..
ÓÃCSS¶¨Òå±êÌâµÄ¼..
CSS±ÕºÏ¸¡¶¯ÔªËØ
CSS³£ÓÃС¼¼ÇÉ
ÓÃCSSʵÏÖÍøÒ³µÄ¾..
HTML rel ÊôÐÔ
css¸ß¼¶²¼¾Ö¼¼ÇÉ
div+css²¼¾ÖʱӦ×..
font-sizeµÄ¿ØÖÆ
marginÓÅ»¯µÄÒ»ÖÖ..
³£ÓÃCSSËõдÓï·¨×..
25ÖÖÄܸÄÉÆ²¢Ìá¸ß..
display:inline-b..
ÅúÁ¿Ïû³ýÍøÒ³Á¬½Ó..
ÔÚÍøÒ³Éè¼ÆÖÐÑÕÉ«..

HTML»ù´¡


×÷Õß:Lindsay Coome ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-05-20 ÐÞ¸Ä:2007-05-25 ä¯ÀÀ:10372 :: ::

Basic HTML stucture looks similar to this:
HTML
»ù´¡¿ò¼ÜÊéдÈçÏ£º

<html>
<head>
</head>

<body>
</body>
</html>

Place your page's main content in between <body> and </body> (text, images, links, etc...) Place things like CSS, meta tags, and titles in between <head> and </head>. To change the background color of your page, replace <body> with:

½«ÍøÕ¾µÄÖ÷ÒªÄÚÈÝ·ÅÖÃÓÚ<body>ºÍ</body>±êÇ©µ±ÖУ¨ÄÚÈÝ¿ÉÒÔ°üÀ¨£ºÎı¾¡¢Í¼Æ¬¡¢Á´½ÓµÈµÈ£©¡£½«CSS¡¢meta±êÇ©ºÍ±êÌâ·ÅÖÃÔÚ<head>ºÍ<head>±êÇ©ÖС£½«Ò³ÃæÖеÄbodyÓÃÏÂÃæµÄ´úÂëÌæ»»£¬´Ó¶ø¸Ä±ä±³¾°ÑÕÉ«£º

<body bgcolor="red">


In other words, you are adding bgcolor="red". You can change red to any color you like (blue, silver, black, orange) or, you can use HEX codes to get a more specific color. For example, #000000 is black, and #FFFFFF is white. HEX codes consist of six characters, either letters or numbers. Here is a HEX code chart:

»»¾ä»°Ëµ£¬ÄãÌí¼ÓÁËbgcolor="red"¡£Äã¿ÉÒÔͨ¹ýÐ޸ēred[ºì]”ÊôÐÔ½«Ò³Ãæ±³¾°¸Ä±ä³ÉÄã×Ô¼ºÏ²»¶µÄÑÕÉ«£¨Èçblue [À¶]¡¢silver [Òø]¡¢black [ºÚ]¡¢orange [³È]£©£»»òÕߣ¬Ä㻹¿ÉÒÔʹÓÃ16½øÖÆÉ«²Ê´úÂëÀ´»ñÈ¡¸ü¶àµÄÑÕÉ«¡£È磺#000000´ú±íºÚÉ«¡¢#FFFFFF´ú±í°×É«¡£16½øÖÆ´úÂëÓÉÁùλ×Ö·û×é³É£¬Ã¿¸ö×Öĸ¶¼ÊÇÒ»¸öÊý×Ö¡£ÏÂÃæÁоÙÁË16½øÖÆ´úÂëͼ±í£º

hex code chart

To use an image as your background, copy the code below, and replace the <body> tag with it.

Äã¿ÉÒÔͨ¹ý¸´ÖÆÏÂÃæµÄ´úÂ뽫±³¾°ÉèÖÃΪͼÏñ£¬·ÅÖÃÔÚ<body>±êÇ©ÖУº

<body background="IMAGE URL">

Replace IMAGE URL with the url of the image you want as your background. To change the color of your text, use the code below:

½«“IMAGE URL”Ìæ»»Îª¾ßÌåµÄͼÏñËùÔÚµÄÁ´½Ó·¾¶£¬´Ó¶ø·ÅÖÃÄãϲ»¶µÄ±³¾°Í¼Æ¬¡£Äã¿ÉÒÔͨ¹ý¸Ä±äÏÂÃæµÄÎı¾´úÂëÀ´¸Ä±äÎı¾ÑÕÉ«£º

<font color="#000000"> text text text</font>


Replace #000000 with the HEX code or color you want, and replace "text text text" with your text. To create an image, use the code below:

½«“#000000Ìæ»»ÎªÄãËùÏ£ÍûµÄÑÕÉ«´úÂ룬½«“text text text”Ìæ»»ÎªÄã×Ô¼ºµÄÎı¾ÄÚÈÝ¡£Í¨¹ýÏÂÃæµÄ´úÂë´´½¨Í¼Ïñ¡£

<img src="IMAGE URL">

Replace IMAGE URL with the url of the image you want to show up.

½«“IMAGE URL”Ìæ»»Îª¾ßÌåµÄͼÏñurl¡£

ÆÀÂÛ (0) All