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

Web¿ª·¢ µÚÒ»²¿·Ö HTML½Ì³Ì»ù´¡£¨¶þ£© head²¿·Ö

head±êÇ©ÑÝʾ´úÂ룺
×¢£º<!-- ºÍ -->Ö®¼äµÄÄÚÈÝΪHTML×¢ÊÍ¡£
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- ÉèÖÃÒ³ÃæÎÄ×Ö±àÂë -->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!-- ÉèÖñ¾µØä¯ÀÀÆ÷»º³å·½Ê½ -->
<meta http-equiv="cache-control" content="no-cache" />
<!-- ÉèÖñ¾µØä¯ÀÀÆ÷µ±Ç°Ò³Ã滺³åʱ¼ä -->
<meta http-equiv="expires" content="0" />
<!-- ÉèÖõ±Ç°Ò³ÃæËÑË÷¹Ø¼ü´Ê -->
<meta http-equiv="keywords" content="HTML ѧϰ head±êÇ©" />
<!-- ÉèÖõ±Ç°Ò³ÃæËÑË÷ÕªÒª -->
<meta http-equiv="description" content="HTML head±êǩѧϰ" />
<!-- ÉèÖöà¾ÃºóˢиÃÒ³Ãæ¼°Ò³ÃæÌøתĿ±ê -->
<meta http-equiv="refresh" content="20; url=http://www.baidu.com" />
<!-- ÉèÖÃÒ³Ãæ±êÌâͼƬ -->
<link href="/.images/title.ico" mce_href=".images/title.ico" rel="shortcut icon" />
<!-- ÉèÖÃÒ³Ãæ±êÌâ -->
<title>headÔªËØ</title>
</head>
</html>
 
ÉÏÃæµÄ´úÂëչʾÁËÈçºÎÔÚ head ÔªËØÖÐÉèÖÃÒ³ÃæµÄһЩÊôÐÔ£¬¿ÉÒÔ¿´µ½£¬Ö÷ҪʹÓÃÁËÈýÀà±êÇ©£º
meta£ºÓÃÓÚÖ¸¶¨ HTML ÎĵµµÄһЩ¸½¼ÓÊôÐÔ£»
link£ºÓÃÓÚÏòµ±Ç°µÄhtmlÎĵµÒýÈëÆäËüÎļþ (ÍⲿÎļþ) £»
title£ºÓÃÓÚÖ¸¶¨µ±Ç°htmlÎĵµµÄ±êÌâ¡£
ͨ¹ý·¶Àý£¬ÎÒÃÇ¿ÉÒÔѧϰµ½£º
meta±êÇ©¾ßÓÐÁ½¸öÖØÒªµÄÊôÐÔ£ºhttp-equivÊôÐÔºÍcontentÊôÐÔ£¬Ç°Õß±íʾһ¸öÃüÁºóÕß±íʾ¸ÃºÍÃüÁîÏà¶ÔÓ¦µÄ²ÎÊýÄÚÈÝ¡£
content-typeÃüÁî¿ÉÒÔÖ¸¶¨HTMLÎĵµÏÔʾʱʹÓõÄ×Ö·û¼¯£¨µÚ5ÐУ©£»²ÎÊý£ºtext/html;
gb2312±íʾÍøÒ³ÊÇHTML¸ñʽµÄ´¿Îı¾£¬Ê¹ÓÃgb2312±àÂëÀ´±àÂëµÄ¡£ÕâÊÇÒ»¾ä×î³£ÓõĿØÖÆÓï¾ä£¬¼¸ºõÿ¸öÒ³Ã涼ҪÉùÃ÷¡£
cache-controlÃüÁîÓÃÀ´ÉèÖÃä¯ÀÀÆ÷»º³åÌØÐÔ£»²ÎÊý£ºno-cache±íʾµ±Ç°Ò³ÃæÎÞÐè±»ä¯ÀÀÆ÷»º³å£¨µÚ7ÐУ©¡£Ò»°ã¶ÔÓÚ¶¯Ì¬Ò³Ã棨¼´Ò³ÃæÓÉ·þÎñÆ÷¶¯Ì¬Éú³É£©¶¼Òª¹Ø±ÕÒ³ÃæµÄ»º³å£¬ÒÔ·ÀÖ¹ä¯ÀÀÆ÷´Ó»º³å¶ø²»ÊÇ·þÎñÆ÷¼ÓÔر»¸üеÄÒ³Ãæ¡£
expiresÃüÁî¾­³£ºÍcache-controlÃüÁîÅäºÏʹÓ㨵Ú8ÐУ©£»²ÎÊýΪһ¸öÕýÕûÊý£¬±íʾҳÃæÈç¹û±»ä¯ÀÀÆ÷»º


Ïà¹ØÎĵµ£º

Éú³É°ïÖúÎĵµ£¨html»òchm¸ñʽ£©

ת×Ô£ºhttp://www.blogjava.net/lishunli/archive/2010/01/07/308618.html
 
Javadocת»»chm°ïÖúÎĵµµÄËÄÖÖ·½·¨×ܽá
                              &nb ......

javascript ¿ØÖÆ htmlÔªËØ ÏÔʾ/Òþ²Ø

javascript ¿ØÖÆ htmlÔªËØ ÏÔʾ/Òþ²Ø
1¡£±àдjsº¯Êý
 <script type="text/javascript">
function display(y){$(y).style.display=($(y).style.display=="none")?"":"none";}
function $(s){return document.getElementById(s);}
 </script>
2. ÒªÏÔÊ ......

HTMLÁ¬ÐøÓ¢ÎÄ×Ö·û´®Ç¿ÖÆ»»ÐÐ

´ó¼Ò¶¼ÖªµÀÔÚtableµÄijһ¸ñÀï²åÈëÎı¾Ê±,Èç¹ûÊÇÖÐÎĵ±È»ÊÇûÓÐÎÊÌâ,µ±µ½´ïÖ¸¶¨¿í¶Èʱ»á×Ô¶¯»»ÐÐ,µ«Èç¹ûÊÇÓ¢ÎÄ»òÊý×ÖÖ®ÀàµÄ¾Í»áÓÐÎÊÌâÁË.ÒòΪËüÊÇÒÔ¿Õ¸ñΪӢÎĵ¥´Ê¼äµÄÇø±ð,µ«ÊÇÈç¹ûÊäÈëÒ»³¤´®Ó¢ÎÄ,Öм䲻º¬¿Õ¸ñʱ,±í¸ñ¾Í±äÐÎÁË.µ«ÊÂʵtableµÄstyleÀïÓÐÒ»Ïî¿ÉÒÔÈÃÓ¢ÎÄÇ¿ÖÆ»»ÐеÄ,¾ÍÊÇword-break,µ±°ÑÕâÏîÉèΪbreak-allʱ´ó¼Ò ......

HTML accesskey ÊôÐÔ

 HTML accesskey ÊôÐÔ
accesskey ÊôÐÔ -- ´ú±íÁ´½ÓµÄ¿ì½Ý¼ü·ÃÎÊ·½Ê½
¶¨ÒåÁËaccesskeyµÄÁ´½Ó¿ÉÒÔʹÓÿì½Ý¼ü(ALT+×Öĸ)·ÃÎÊ.
Ö÷²Ëµ¥Óëµ¼º½²Ëµ¥Ê¹ÓÃaccesskey,ͨ³£ÊDz»´íµÄÑ¡Ôñ.
È¡Öµ:
×Öĸ
ÒýÓÃÍøÖ·:http://www.dreamdu.com/xhtml/attribute_accesskey/
ʾÀý
<a href="http://www.dreamdu.com/xhtml/" acces ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ