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
Ïà¹ØÎĵµ£º
ʲôÊÇXHTML£¿ÓëHTMLÏà±ÈXHTMLÓÐʲôÌص㣿
¡¡¡¡HTMLÊÇÒ»ÖÖ»ù±¾µÄWEBÍøÒ³Éè¼ÆÓïÑÔ£¬XHTMLÊÇÒ»¸ö»ùÓÚXMLµÄÖñêÓïÑÔ£¬¿´ÆðÀ´ÓëHTMLÓÐЩÏàÏó£¬Ö»ÓÐһЩСµÄµ«ÖØÒªµÄÇø±ð¡£±¾Îļòµ¥½éÉÜʲôÊÇXHTML£¬ÒÔ¼°ÓëHTMLÏà±ÈXHTMLÓÐʲôÌص㡣
¡¡¡¡1¡¢Ê²Ã´ÊÇXHTML£¿
¡¡¡¡HTMLÊÇÒ»ÖÖ»ù±¾µÄWEBÍøÒ³Éè¼ÆÓïÑÔ£¬XHTMLÊÇÒ»¸ö»ùÓÚXMLµÄÖñêÓï ......
ÔÚhtmlÎļþÒýÈëÆäËühtmlÎļþµÄ¼¸ÖÖ·½·¨
¼ò½é£ºÔÚÂÛ̳Öг£³£ÓÐÍøÓÑÎʵ½£¬¿ÉÒÔÔÚÒ»¸öhtmlµÄÎļþµ±ÖжÁÈ¡ÁíÒ»¸öhtmlÎļþµÄÄÚÈÝÂ𣿴ð°¸ÊÇÈ·¶¨µÄ£¬¶øÇÒ·½·¨²»Ö»Ò»ÖÖ£¬ÔÚÒÔÇ°ÎÒÖ»»áʹÓÃiframeÀ´ÒýÓ㬺óÀ´·¢ÏÖÁËÁíÍâµÄ¼¸ÖÖ·½·¨£¬ÄǽñÌì¾Í×ܽáÕ⼸ÖÖ·½·¨Èôó¼Ò²Î¿¼Ò»Ï£¬±¾È˾õµÃµÚÈýÖÖ·½Ê½½ÏºÃ£¡
1.IFrameÒýÈ룬¿´¿´ÏÂÃæµÄ´ú ......
´ÓÍøÉϵÄSThtmlDialogÀý×ӸĹýÀ´µÄ£¬ÔÚMFC³ÌÐòÖÐÏÔʾHTMLÍøÒ³µÄ·½·¨
1¡¢ÔÚÊÓͼÀàÖÐÌí¼ÓÍ·Îļþ#include <Htmlctrl.h>
2¡¢ÔÚÊÓͼͷÎļþÖÐÌí¼Ó±äÁ¿
HWND m_hwndHtml;//HTML¿Ø¼þ´°¿Ú¾ä±ú
HINSTANCE m_HtmlViewInstance;//¶¯Ì¬Á´½Ó¿â×°Ôؾä±ú
²¢¸³Óè³õʼֵm_HtmlViewInstance = 0;
3¡¢´´½¨ÍøÒ³¿Ø¼þ, ......
ÈçºÎÖªµÀ²»Ê¶±ðÁËÄØ£¿
MyEclipse--window--Preperences--MyEclipse--Files and Editors--XML--XML Catalog(Èô³öÏÖºìÉ«µÄ²æºÅ±íʾXMLʶ±ð²»ÁË)£»
н¨user_catalog.xml
£¨ÆäÖÐI:/Eclipse/CommonPlugins/DTD/ Ŀ¼Ï·ÅÖø÷ÖÖ´ÓÍøÉÏÏÂÔصÄdtdÎļþ£©
ÈçÏëÌí¼ÓеÄdtdÎļþ£¬Ð޸ĴËÅäÖÃÎļþ¼´¿É¡£
<?xml version="1.0" en ......
http://blog.stchur.com/2010/01/15/programmatically-clicking-a-link-in-javascript/
×÷Õß½éÉÜÈçºÎÓÃjavascriptÄ£ÄâÓû§ÕæʵµÄµã»÷¡£
Õâ¿´ÉÏÈ¥ºÃÏñºÜ¼òµ¥£¬¶ÁÈ¡hrefÈ»ºóÀûÓÃwindow.location.href²»¾ÍÐÐÁËÂð£¿
Æäʵ²»È»£¬ÔÒòÔÚÓÚÏÖÔÚµÄÍøÒ³ÀïµÄÁ´½Ó²»µ¥ÊÇÖ±½Ó¶ÁÈ¡hrefÊôÐÔÈ»ºóÌøתµ½ÁíÒ»¸öÒ³Ã棬ÓÐЩÁ´½Ó¿ÉÒÔ¼ÓÉÏevent ......