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

html divµÄ×Ô¶¯ÉìËõ

.winstonDivClass{ overflow:hidden; zoom:1; }

Èç¹û¸¸divÐèÒª¸ù¾Ý×ÓdivµÄ´óСµÄ±ä»¯¶ø±ä»¯£¬ÄÇôÕâ¸ö¸¸div
ÐèÒª¼ÓÉÏclass="winstonDivClass"
,ÇҸø¸div²»ÄÜÖ¸¶¨heightÊôÐÔ£¬ÆäÖеÄ×ÓdivµÄpositionÊôÐÔ×îºÃΪrelative;
ÓÃzoom:1;´¥·¢ieµÄhaslayout,ÓÃÀ´Ç帡¶¯
¶øoverflow¿ÉÒÔ´¥·¢ie7µÄhaslayout£¬²¢ÔÚFFÏÂÒ²ÄÜÇåÀí¸¡¶¯¡£
Èç¹ûÏëÖ¸¶¨×ÓdivµÄ×îС¸ß¶È£¬ÔÚie7ºÍÆäËûä¯ÀÀÆ÷Ï¿ÉÒÔÖ¸¶¨divµÄMin-heightÊôÐÔ£¬µ«ÊÇÔÚie6Àïmin-heightÊôÐÔòËƲ»±»Ö§³Ö£¬ËùÒÔ¼æÈݵķ½·¨Ó¦¸ÃÊÇÔÚ¸Ã×ÓdivÉÏÒ²¼ÓÉÏ
class="winstonDivClass"£¬È»ºóÔÚÀïÃæ¼ÓÉÏÒ»¸öwidth:0px,positon:relative,height:xxx
px
;µÄdiv,ÕâÑù¾Í¿ÉÒÔʵÏÖMin-height:xxx
px
;ÏàͬµÄЧ¹û¡£


Ïà¹ØÎĵµ£º

html ±í¸ñÌØÊâ±êÌâ £¨legend£©

<html>
<head>
<mce:style type="text/css"><!--
td
{
width:50;
height:50;
text-align:center;
vertical-align: center;
}
table
{
vertical-align: bottom;
}
legend
{
text-align:center;
}
fieldset
{
width:300; ......

html ¹ö¶¯Ìõ

<html>
<head>
<mce:style type = "text/css"><!--
div
{
overflow-y:scroll;
height:200;
overflow-x:scroll;
width:200;
}

--></mce:style><style type = "text/css" mce_bogus="1"> div
{
ove ......

C#ÖÐʵÏÖWebBrowser¿Ø¼þµÄHTMLÔ´´úÂë¶Áд

³ÃÖÜÄ©ÏëÕÛÌÚÒ»ÏÂǶÈëASP.NETµÄWinForm³ÌÐò
ÐèÒªÓõ½WebBrowser¿Ø¼þµÄHTMLÔ´Âë¶Áд
¾Í°ÑÒÔÇ°µÄһЩ´úÂëƬ¶ÏÒÆÖµµ½C#ÏÂ
˳±ã·¢¸öÌû×Ó±¸Íü£¬ºÇºÇ
  
˼·ÆäʵºÜ¼òµ¥£¬Ö±½Óͨ¹ýdocument.documentElement.outerHTML
»òÕßʹÓÃIPersistStreamInit½Ó¿ÚÖ±½Ó¶ÔÁ÷½øÐд¦Àí
Ç°ÕßÎҾͲ»·Ï»°ÁË£¬ºóÕßʵÏÖ·½·¨ÈçÏÂ
&nbs ......

HTMLתPDF£¨C# itextsharp£©

Ò»¡¢ ÐèÇ󣺽«HTMLתPDF´òÓ¡¡£WebÏîÄ¿ÖÐ×ÜÊÇÓÐÕâÑùµÄÐèÇ󣬺ÜÊÇÈÃÈË¿àÄÕ¡£
¶þ¡¢ ·ÖÎö£ºÈçºÎÍê³ÉÕâ¸ö¹¤×÷£¿
1¡¢ ÐèÒª½âÎöHTML£¬È»ºóÀûÓÃitextsharp»æÖÆpdfÎĵµ¡£½âÎöHTMLÊÇÒ»¸öºÜÄÑÍê³ÉµÄÈÎÎñ£¬¸÷¸öä¯ÀÀÆ÷¶ÔHTMLµÄ½âÎöÎ廨°ËÞÍÖªµÀÕâ²»ºÃ½â¾ö¡£ÕâÌõ·²»ºÃ×ߣ¬µ«Ò²ÊÇ¿ÉÒÔÍê³ÉµÄ£¬Í¨¹ýwebbrowserÀà¿ÉÒÔ½âÎöHTML»ñÈ¡¸÷¶ÔÏóµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ