WebBrower 中如何获取下面这段代码的图片 :看红色标记,
<TABLE class=MsoNormalTable
style="MARGIN-LEFT: -0.65pt; WIDTH: 130pt; BORDER-COLLAPSE: collapse"
cellSpacing=0 cellPadding=0 width=173 border=0>
<TBODY>
<TR style="HEIGHT: 85.5pt">
<TD
style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 65pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 85.5pt"
width=87>
<P class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial Unicode MS','sans-serif'">W13FY313D<o:p></o:p></SPAN></P></TD>
<TD
style="PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; WIDTH: 65pt; PADDING-TOP: 0in; HEIGHT: 85.5pt"
vAlign=bottom noWrap width=87>
<P class=MsoNormal><!--[if gte vml 1]><v:shapetype id=_x0000_t75 coordsize
= "21600,21600" o:preferrelative = "t" o:spt = "75" filled = "f" stroked =
"f" path = " m@4@5 l@4@11@9@11@9@5 xe"><v:stroke joinstyle =
"miter"></v:stroke><v:formulas><v:f eqn =
"if lineDrawn pixelLineWidth 0 "></v:f><v:f eqn = "sum @0 1 0 "></v:f><v:f
eqn = "sum 0 0 @1 "></v:f><v:f eqn = "prod @2 1 2 "></v:f><v:f eqn =
"prod @3 21600 pixelWidth "></v:f><v:f eqn =
"prod @3 21600 pixelHeight "></v:f><v:f eqn = "sum @0 0 1 "></v:f><v:f eqn
= "prod @6 1 2 "></v:f><v:f eqn = "prod @7 21600 pixelWidth "></v:f><v:f
eqn = "sum @8 21600 0 "></v:f><v:f eqn =
"prod @7 21600 pixelHeight "></v:f><v:f eqn =
"sum @10 21600 0 "></v:f></v:formulas><v:path o:extrusionok = "f"
gradientshapeok = "t" o:connecttype = "rect"></v:path><o:lock
aspectratio="t" v:ext="edit"></o:lock></v:shapetype><v:shape
id=Picture_x0020_4
style="MARGIN-TOP: -0.75pt; Z-INDEX: 1; VISIBILITY: visible; MARGIN-LEFT: 0.75pt; WIDTH: 49.5pt; POSITION: absolute; HEIGHT: 82.5pt; mso-wrap-style: square; mso-wrap-distance-left: 9pt; mso-wrap-distance-top: 0; mso-wrap-distance-right: 9pt; mso-wrap-distance-bottom: 0; mso-position-horizontal: absolute; mso-position-horizontal-relative: text; mso-position-vertical: absolute; mso-position-vertical-relative: text"
o:spid="_x0000_s1028" type = "#_x0000_t75" coordsize = "21600,21600"
strokeweight = "1emu">
<v:imagedata o:title="" src = "cid:[email protected]">
</v:imagedata></v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:relative;z-index:1'><span style='position:absolute;left:1px;top:-1px;width:66px;height:110px'>
<img width=66 height=110 src="cid:[email protected]" v:shapes="Picture_x0020_4"></span></span><![endif]><SPAN
style="COLOR: black"><o:p></o:p></SPAN></P>
<TABLE class=MsoNormalTable cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR style="HEIGHT: 85.5pt">
<TD
style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 0in; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 65pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 85.5pt"
width=87>
<P class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial Unicode MS','sans-serif'"> <o:p></o:p></SPAN></P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE class=MsoNormalTable
style="MARGIN-LEFT: -0.65pt; WIDTH: 130pt; BORDER-COLLAPSE: collapse"
cellSpacing=0 cellPadding=0 width=173 border=0>
<TBODY>
<TR style="HEIGHT: 85.5pt">
<TD
style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 65pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 85.5pt"
width=87>
<P class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial Unicode MS','sans-serif'">W13FY313D<o:p></o:p></SPAN></P></TD>
<TD
style="PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; WIDTH: 65pt; PADDING-TOP: 0in; HEIGHT: 85.5pt"
vAlign=bottom noWrap width=87>
<P class=MsoNormal><!--[if gte vml 1]><v:shapetype id=_x0000_t75 coordsize
= "21600,21600" o:preferrelative = "t" o:spt = "75" filled = "f" stroked =
"f" path = " m@4@5 l@4@11@9@11@9@5 xe"><v:stroke joinstyle =
"miter"></v:stroke><v:formulas><v:f eqn =
"if lineDrawn pixelLineWidth 0 "></v:f><v:f eqn = "sum @0 1 0 "></v:f><v:f
eqn = "sum 0 0 @1 "></v:f><v:f eqn = "prod @2 1 2 "></v:f><v:f eqn =
"prod @3 21600 pixelWidth "></v:f><v:f eqn =
"prod @3 21600 pixelHeight "></v:f><v:f eqn = "sum @0 0 1 "></v:f><v:f eqn
= "prod @6 1 2 "></v:f><v:f eqn = "prod @7 21600 pixelWidth "></v:f><v:f
eqn = "sum @8 21600 0 "></v:f><v:f eqn =
"prod @7 21600 pixelHeight "></v:f><v:f eqn =
"sum @10 21600 0 "></v:f></v:formulas><v:path o:extrusionok = "f"
gradientshapeok = "t" o:connecttype = "rect"></v:path><o:lock
aspectratio="t" v:ext="edit"></o:lock></v:shapetype><v:shape
id=Picture_x0020_4
style="MARGIN-TOP: -0.75pt; Z-INDEX: 1; VISIBILITY: visible; MARGIN-LEFT: 0.75pt; WIDTH: 49.5pt; POSITION: absolute; HEIGHT: 82.5pt; mso-wrap-style: square; mso-wrap-distance-left: 9pt; mso-wrap-distance-top: 0; mso-wrap-distance-right: 9pt; mso-wrap-distance-bottom: 0; mso-position-horizontal: absolute; mso-position-horizontal-relative: text; mso-position-vertical: absolute; mso-position-vertical-relative: text"
o:spid="_x0000_s1028" type = "#_x0000_t75" coordsize = "21600,21600"
strokeweight = "1emu">
<v:imagedata o:title="" src = "cid:[email protected]">
</v:imagedata></v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:relative;z-index:1'><span style='position:absolute;left:1px;top:-1px;width:66px;height:110px'>
<img width=66 height=110 src="cid:[email protected]" v:shapes="Picture_x0020_4"></span></span><![endif]><SPAN
style="COLOR: black"><o:p></o:p></SPAN></P>
<TABLE class=MsoNormalTable cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR style="HEIGHT: 85.5pt">
<TD
style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 0in; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 65pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 85.5pt"
width=87>
<P class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial Unicode MS','sans-serif'"> <o:p></o:p></SPAN></P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
解决方案 »
- 请问怎么给delphi程序添加TLS_CallBack函数
- 不知道如何创建这个组件?就是增强TStatusBar的功能.
- 為深麼在access被設置密碼以後用ado連接總是連接不上阿,提示已被另一用戶以獨占方式打開
- 我想动态创建一个PARADOX表,请问我写的这段代码哪有问题?
- SQL Server 数据库恢复的问题
- 急急急!如何用用SQL-DMO开发实现数据的备份和还原,特别是还原!
- 问一个问题 D6 D7有什么区别?
- TADOTABLE 及时更新数据的问题。100分求助...
- Delphi编绎的程序没有图标????
- 怎样调出输入法的图标....
- RzShellList中如何改变双击文件时自动调出系统工具
- BDE SQL缓存
for i := 0 to Doc.images.length - 1 do
src := (Doc.Images.Item(i, 0) as IHTMLImgElement).src;
并不是直接指向文件路径的, 应该在还有什么处理, 如js动态加载等.
这个不知是否能帮到你.只负责解析不会渲染.
你这个是WORD生成的吗?
我给你的解析器不支持vml语法.所以你那些<!--[if gte vml 1]>...<![endif]-->中间的节点都会被看成是注释.
只能解析到你后面那个img节点.用那个SimpleCSSSelector方法,字符串给'img'即可.
执行这个会报错
FNodes := parserHtml(Doc.body.innerHTML);