9 个解决方案
#1
你老师的那个做法或许能行,为什么不用XML技术呢?
#2
不好意思,XML技术我不会,请问用XML怎么解决呢?
#3
自己顶起来啊
#4
等待…………
#5
自己再顶
#6
你的html格式是怎么样的,发个源码看看,能用xml来解析最好了
#7
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>
DBGridEh4
</TITLE>
</HEAD>
<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=2 BGCOLOR=#D4D0C8>
<TR>
<TD ALIGN="CENTER" COLSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>位置</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>超限类型</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>峰值(mm或g)</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>长度(m)</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>超限等级</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>线形(直/缓/曲)</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>速度(km/h)</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>检测标准</B></FONT></TD>
</TR>
<TR>
<TD WIDTH=150 ALIGN="CENTER"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>公里</B></FONT></TD>
<TD WIDTH=150 ALIGN="CENTER"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>米</B></FONT></TD>
</TR>
<TR>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">31</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">520</FONT></TD>
<TD WIDTH=146 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">三角坑</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">-8.53</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">1</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">3</FONT></TD>
<TD WIDTH=155 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">直</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">199</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">[200,250]</FONT></TD>
</TR>
<TR>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">111</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">259</FONT></TD>
<TD WIDTH=146 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">三角坑</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">-8.96</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">3</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">3</FONT></TD>
<TD WIDTH=155 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">直</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">179</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">[200,250]</FONT></TD>
</TR>
<TR>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">280</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">862</FONT></TD>
<TD WIDTH=146 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">三角坑</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">-8.87</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">2</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">3</FONT></TD>
<TD WIDTH=155 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">圆</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">198</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">[200,250]</FONT></TD>
</TR>
</TABLE>
</BODY>
</HTML>
这是最少的数据了,有的数据很多,谢谢了
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>
DBGridEh4
</TITLE>
</HEAD>
<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=2 BGCOLOR=#D4D0C8>
<TR>
<TD ALIGN="CENTER" COLSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>位置</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>超限类型</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>峰值(mm或g)</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>长度(m)</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>超限等级</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>线形(直/缓/曲)</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>速度(km/h)</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>检测标准</B></FONT></TD>
</TR>
<TR>
<TD WIDTH=150 ALIGN="CENTER"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>公里</B></FONT></TD>
<TD WIDTH=150 ALIGN="CENTER"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>米</B></FONT></TD>
</TR>
<TR>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">31</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">520</FONT></TD>
<TD WIDTH=146 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">三角坑</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">-8.53</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">1</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">3</FONT></TD>
<TD WIDTH=155 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">直</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">199</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">[200,250]</FONT></TD>
</TR>
<TR>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">111</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">259</FONT></TD>
<TD WIDTH=146 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">三角坑</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">-8.96</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">3</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">3</FONT></TD>
<TD WIDTH=155 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">直</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">179</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">[200,250]</FONT></TD>
</TR>
<TR>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">280</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">862</FONT></TD>
<TD WIDTH=146 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">三角坑</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">-8.87</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">2</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">3</FONT></TD>
<TD WIDTH=155 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">圆</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">198</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">[200,250]</FONT></TD>
</TR>
</TABLE>
</BODY>
</HTML>
这是最少的数据了,有的数据很多,谢谢了
#8
问题已解决,就按照读文本的方法读html就行
#9
兄弟,我现在也碰到这个问题,能否把你的代码发我参考下呢?万分感谢!!!
#1
你老师的那个做法或许能行,为什么不用XML技术呢?
#2
不好意思,XML技术我不会,请问用XML怎么解决呢?
#3
自己顶起来啊
#4
等待…………
#5
自己再顶
#6
你的html格式是怎么样的,发个源码看看,能用xml来解析最好了
#7
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>
DBGridEh4
</TITLE>
</HEAD>
<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=2 BGCOLOR=#D4D0C8>
<TR>
<TD ALIGN="CENTER" COLSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>位置</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>超限类型</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>峰值(mm或g)</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>长度(m)</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>超限等级</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>线形(直/缓/曲)</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>速度(km/h)</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>检测标准</B></FONT></TD>
</TR>
<TR>
<TD WIDTH=150 ALIGN="CENTER"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>公里</B></FONT></TD>
<TD WIDTH=150 ALIGN="CENTER"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>米</B></FONT></TD>
</TR>
<TR>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">31</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">520</FONT></TD>
<TD WIDTH=146 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">三角坑</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">-8.53</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">1</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">3</FONT></TD>
<TD WIDTH=155 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">直</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">199</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">[200,250]</FONT></TD>
</TR>
<TR>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">111</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">259</FONT></TD>
<TD WIDTH=146 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">三角坑</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">-8.96</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">3</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">3</FONT></TD>
<TD WIDTH=155 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">直</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">179</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">[200,250]</FONT></TD>
</TR>
<TR>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">280</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">862</FONT></TD>
<TD WIDTH=146 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">三角坑</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">-8.87</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">2</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">3</FONT></TD>
<TD WIDTH=155 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">圆</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">198</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">[200,250]</FONT></TD>
</TR>
</TABLE>
</BODY>
</HTML>
这是最少的数据了,有的数据很多,谢谢了
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>
DBGridEh4
</TITLE>
</HEAD>
<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=2 BGCOLOR=#D4D0C8>
<TR>
<TD ALIGN="CENTER" COLSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>位置</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>超限类型</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>峰值(mm或g)</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>长度(m)</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>超限等级</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>线形(直/缓/曲)</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>速度(km/h)</B></FONT></TD>
<TD ALIGN="CENTER" ROWSPAN = "2"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>检测标准</B></FONT></TD>
</TR>
<TR>
<TD WIDTH=150 ALIGN="CENTER"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>公里</B></FONT></TD>
<TD WIDTH=150 ALIGN="CENTER"><FONT STYLE="font-family: 仿宋_GB2312; font-size: 14pt; color: #000000"><B>米</B></FONT></TD>
</TR>
<TR>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">31</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">520</FONT></TD>
<TD WIDTH=146 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">三角坑</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">-8.53</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">1</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">3</FONT></TD>
<TD WIDTH=155 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">直</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">199</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">[200,250]</FONT></TD>
</TR>
<TR>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">111</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">259</FONT></TD>
<TD WIDTH=146 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">三角坑</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">-8.96</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">3</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">3</FONT></TD>
<TD WIDTH=155 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">直</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">179</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">[200,250]</FONT></TD>
</TR>
<TR>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">280</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">862</FONT></TD>
<TD WIDTH=146 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">三角坑</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">-8.87</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">2</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">3</FONT></TD>
<TD WIDTH=155 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">圆</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">198</FONT></TD>
<TD WIDTH=150 ALIGN="CENTER" BGCOLOR=#FFFFFF><FONT STYLE="font-family: MS Sans Serif; font-size: 12pt; color: #000000">[200,250]</FONT></TD>
</TR>
</TABLE>
</BODY>
</HTML>
这是最少的数据了,有的数据很多,谢谢了
#8
问题已解决,就按照读文本的方法读html就行
#9
兄弟,我现在也碰到这个问题,能否把你的代码发我参考下呢?万分感谢!!!