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

cssÖÐpadding-left×ÜÊÇ - Web ¿ª·¢ / HTML(CSS)

ÔÚʹÓÃCSSÖеÄpadding-leftʱÓöµ½Ò»¸öÎÊÌâ¡£¾ÍÊDZ¾À´ÒѾ­ÉèÖúõĿí¶È£¬padding-leftÒ»ÉèÖà ¶àÉÙºÃÏñ¾Í°ÑÕâ¸ö¼Ó¿íÁ˶àÉÙ¡£ºóÃæµÄDIV¾Í±äλÖÃÁË¡£ÓÐû½â¾ö°ì·¨Ñ½
ÇëÎÊÄãIE¼¸°¡£¿=£¬= ²»»áÓÐÕâÖÖÇé¿öÒ®

Èç¹ûÊÇIE6£¬ÄãÊÔÊÔdisplay:inline

¿í¶ÈÒ²ÏàÓ¦¼õÉÙ£¬¼õÈ¥padding-leftµÄ¿í¶È.

²¹³äÂ¥ÉÏ£º
¼ÙÈç½øÐÐÁËÕâÑùµÄÉèÖãº

HTML²¿·Ö£º
<h3>¼ÙÈç½øÐÐÁËÕâÑùµÄÉèÖÃ</h3>

CSS²¿·Ö£º
h3 { background:#ccc; width:300px; padding-left:20px;}

<h3>ÔªËصÄʵ¼Ê¿í¶ÈµÈÓÚpadding-left + width = 320px

Èç¹û²»Ïë¸Ä±äwidth£¬¿ÉÒÔͨ¹ýtext-indentÊôÐÔÀ´½øÐÐÉèÖãº

h3 { background:#ccc; width:300px; text-indent:20px;}

ÕâÑù¾Í²»»á¡°¼Ó¿íÁË¡±

ʹÓÃhack¼¼Êõ°É£¬IEÏÂÓÐË«±ß¾àbug

*padding-left: ...



  height:20px; /*For Firefox*/

  *height:25px; /*For IE7 & IE6*/

  _height:20px; /*For IE6*/

Èç¹ûÊÇieä¯ÀÀÆ÷µÄ»°¾ÍÊÇ×ܵĿí¶È= ʵ¼Ê¿í¶È+padding-left



Ïà¹ØÎÊ´ð£º

HTMLת»»³Éasp.net ÍøÒ³

ÎÒÒªµ÷ÊԽű¾ÓïÑÔ ÔÚVS2008ÀïHTMLµÄ½Å±¾²»Äܵ÷ÊÔ
ÔõôÄÜ°ÑhTMLת»»³Éasp.netÎļþ
Áí´æΪaspxÎļþ...

ºÇºÇ

ÎÒ˵µÄÓе㲻¶ÔÁË
ÄÇÀïÓÐÍâÃæÒýÈëµÄJSÎļþ HTML Ö±½Óµ÷ÓÃÄÇÀïµÄº¯Êý¿ÉÊÇ×°³ÉASPXºó¾ÍÕÒ²»µ½Ä ......

¹ØÓÚ<html:file>µÄÒ»¸öÄÑÌâ

Ôõô²Å¿ÉÒÔÈ¥µô <html:file>ÖеÄÄǸöÊäÈë¿ò£¬ÈÃÒ³ÃæÖ»ÏÔʾÄǸöä¯ÀÀ°´Å¥£®»òÊÇÓÃÒ»¸öbuttonÀ´×ö£¬µ±µã»÷Ò»¸öbutton¾Í¿ÉÒÔä¯ÀÀ±¾µØµÄÎļþ¼Ð£®


ÎÒÊÇдÁËÒ»¸öbuttonºÍÒ»¸ö <html:file>±êÇ©
È»ºó ......

¹ØÓÚWebBrowserʶ±ðhtmlµÄÎÊÌâ

ÎÒÓÃWebBrowserÔØÈëÒ»¸öÍøÒ³

È»ºó¶ÁÈ¡±£³Öhtmlµ½Îļþ

·¢ÏÖºÍʵ¼ÊµÄ²î±ðºÃ´ó¡£ºÜ¶àλÖö¼³öÏÖÂÒÂë

ÔÙieÖб£´æ³öÀ´µÄ¾ÍûÎÊÌâ

²»ÖªµÀÔõô»ØÊÂ

Function getWebHtml(browser As Web ......

wordתhtmlÈçºÎÇå³ýÈßÓà´úÂë

ÎÒÓм¸Íò¸ö´ÓwordתÀ´µÄhtmlÎļþ£¬µ«ÕâЩhtmlÎļþÓÉdocµÄ100¶àK±ä³ÉÁ˼¸M£¬¼¸Ê®M¡£

Ô­À´×ªÎªhtmlʱ²úÉúÁË´óÁ¿µÄÈßÓà´úÂ룬ÇëÎÊÓÐʲô·½·¨¿ÉÒÔÇå³ýÕâЩÀ¬»ø¡£

ÐèÒª³ÌÐò´úÂë¡£
¸Õ²Åû·ÖÁË£¬ÏÖÔÚÓÖÓÐÁË£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ