HTML±í¸ñרÓÐÊôÐÔºÍCSS
HTML±í¸ñºÜÈÝÒ×ÉÏÊÖ£¬Ò»¶Ñtr¼Ótd¾Í¿ÉÒÔÏÔʾһÕűí¸ñÁË¡£¸´ÔÓÒ»µã¾ÍÊÇÔÙ¼ÓÉÏth£¬colgroup£¬tbody£¬tfooter£¬captionÖ®Àà¡£ÕâЩHTMLÀïÃæµÄ¸÷ÖÖÔªËصÄÈ·¼ÓÇ¿Á˱í¸ñµÄʵÓÃÐÔºÍÓïÒ廯£¬µ«table±¾Éí¾ÍÓкܴóѧÎÊŶ£¬±Ï¾¹ÊÇÕû¸ö±í¸ñµÄ¸ù°¡£¡
½ñÌìÏÂÃæÒª×ܽá°üº¬¶Ôtable±¾ÉíµÄÊôÐÔ¹éÄɺÍtableרÓõÄCSS±È½Ï£º
attributes VS CSS properties
µÚÒ»¸ö±È½ÏÈÝÒ×»ìÏýµÄÊÇtableµÄborderÊôÐÔºÍCSSÖеÄborder£º
Attribute
border='1' //Sets or retrieves the width of the border to draw around the object.
CSS
border-style:solid; //only set the border of the table, NOT the border inside table
border-width:1px;
border-color:#ccc;
if you set the border like table.border = 2; it will refer to the first border
µÚ¶þ¸öÊÇCellspacingºÍborder-spacing
Attribute
cellspacing Sets or retrieves the amount of space between cells in a table.
CSS
border-spacing:20px; the same as cellspacing, NOT for IE7/6
this two will work only if the border-collapse is separate
µÚÈý¸öÊÇcellPadding£¬Ö»ÓÐÊôÐÔ£¬Ã»ÓжÔÓ¦µÄCSS
cellpadding: Sets or retrieves the amount of space between the border of the cell and the content of the cell.
there is no CSS property can do this
µÚËĸötableרÓÐCSS£ºborder-collapse, ¾ö¶¨borderÊǶÀÁ¢»¹ÊǾÛ£
CSS border-collapse:collapse/separate;
This declaration takes two values:
1. separate: keep borders separate. This is the default.
2. collapse: merge borders of adjoining cells.
µÚÎå¸ötableרÓÐCSS£º empty-cells
CSS empty-cells
empty-cells is not supported by IE.
This declaration takes two values:
1. show: show empty cells (with a border). This is the default.
2. hide: hide empty cells.
µÚÁù¸ötableרÓÐCSS£ºcaption-side
CSS caption-side
Not supported by IE Windows.
Mozilla supports two extra values.
caption-side takes four values, even though W3C specifies only the first two:
top. This is the default.
bottom. This is the other official value.
left. Mozilla extension.
right. Mozilla
Ïà¹ØÎĵµ£º
HTMLÖÐSelect²»ÓÃDisabledʵÏÖReadOnlyµÄÁíÀàʵÏÖ.
<select onbeforeactivate="return false" onfocus="this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()">
<option>1</option>
</select> ......
δÀ´µÄ Web ÕýÔÚ¼ÓËÙµ½À´£¬HTML5 ÒѾÍê³ÉϸÔòµÄÖƶ¨²¢ÐîÊÆ´ý·¢£¬¾¡¹ÜËüµÄʵÏÖÈÔ´ýʱÈÕ
£¬Ò»Ð©ÓÐÇ°Õ°ÑÛ¹âµÄä¯ÀÀÆ÷ÒѾ¿ªÊ¼Ö§³Ö HTML5 µÄ²¿·Ö¹¦ÄÜ
¡£HTML5 ÊÇ10ÄêÀ´ Web ±ê×¼µÄ×î´ó¸Ä½ø£¬È»¶ø HTML5 Ö®ºóÊÇʲô£¿ÊÇ HTML6 Âð£¿
²»ÊÇ¡£ WHAT ¹¤×÷×é (WHAT Working Group)
ÕýÁªºÏ W3C
Öƶ¨ HTML5 µÄºóÐø°æ±¾µÄϸÔò£¬Ëûà ......
http://blog.stchur.com/2010/01/15/programmatically-clicking-a-link-in-javascript/
×÷Õß½éÉÜÈçºÎÓÃjavascriptÄ£ÄâÓû§ÕæʵµÄµã»÷¡£
Õâ¿´ÉÏÈ¥ºÃÏñºÜ¼òµ¥£¬¶ÁÈ¡hrefÈ»ºóÀûÓÃwindow.location.href²»¾ÍÐÐÁËÂð£¿
Æäʵ²»È»£¬ÔÒòÔÚÓÚÏÖÔÚµÄÍøÒ³ÀïµÄÁ´½Ó²»µ¥ÊÇÖ±½Ó¶ÁÈ¡hrefÊôÐÔÈ»ºóÌøתµ½ÁíÒ»¸öÒ³Ã棬ÓÐЩÁ´½Ó¿ÉÒÔ¼ÓÉÏevent ......
ͻȻһ´Î£¬ÏëÊäÈëÉÏϱ꣬editor²»Ö§³Ö£¬ÓÚÊǺõËѵÃÒÔ϶«¶«¡£ ÓеÄHTML±êÇ©Äã¿ÉÄÜ´ÓδʹÓùý£¬²»ÊÇÒòΪÄãǷȱѧϰ¾«Éñ£¬¶øÊÇËüÃÇȷʵÓô¦²»´ó¡£Èç¹ûÄãÓÐ̽Ë÷¾«Éñ£¬ÄǾͽÓ×ÅÍùÏ¿´°É¡£ µÚÒ»¸ö£ºabbr »ò acronym
ÕâÁ½¸ö±êʶÊÇÒ»»ØÊ£¬Ö÷ÒªÊÇÓÃÓÚһЩӢÓïµÄËõд£¬µ±Äã°ÑÊó±êÒÆÉÏÈ¥µÄʱºò£¬Äã»á·¢ÏÖ»á³öÏÖÒ»¸öСÌáʾÀ´Ì ......
ÓÐ關html´°體¿ò¼ÜµÄ問題£¬Èç¹ûÏëÒª實現ÔÚÒ»個畫ÃæÖзָ體£¬並ÇÒͨ過點擊ÆäÖеÄÒ»個´°體£¬鏈½Ó內ÈÝÖÁͬһ個畫ÃæÖеÄÁíÒ»個´°體¡£¾ÍÐèҪʹÓÃ<frameset>與<frame>µÄ ......