w3pop.com :: ÍøÂçѧԺ :: WEBÉè¼Æ×ÛºÏ :: HTML»ù´¡
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½øÖÆ´úÂëͼ±í£º

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:
½«“#
|
<img src="IMAGE URL"> |
Replace IMAGE URL with the url of the image you want to show up.
½«“IMAGE URL”Ìæ»»Îª¾ßÌåµÄͼÏñurl¡£
ÆÀÂÛ (0)
All