| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 574 人关注过本帖
标题:求助,取出html中td元素内容
只看楼主 加入收藏
linweihong
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2008-6-6
收藏
 问题点数:0 回复次数:0 
求助,取出html中td元素内容
<tr align="center" bgcolor="#FFFFFF">
              <td height="32" bgcolor="#FFFaC7">265199</td>
              <td height="28" bgcolor="#f8f8f8">06-07 16:00</td>
              <td bgcolor="#f8f8f8"><script language="javascript" type="text/javascript">chkResult('','-1');</script></td>
              <td bgcolor="#f8f8f8">27</td>
              <td bgcolor="#f8f8f8">27,140<img src="/img/pub/egg.gif"/></td>
              <td height="28" bgcolor="#f8f8f8"><script language="javascript" type="text/javascript">chkwin('0','272389');</script></td>
              <td bgcolor="#f8f8f8"><script language="javascript" type="text/javascript">chkStatus('0','272389');</script></td>
            </tr>
        
            <tr align="center" bgcolor="#FFFFFF">
              <td height="32" bgcolor="#FFFaC7">265198</td>
              <td height="28" bgcolor="#FFFFFF">06-07 15:55</td>
              <td bgcolor="#FFFFFF"><script language="javascript" type="text/javascript">chkResult('','-1');</script></td>
              <td bgcolor="#FFFFFF">27</td>
              <td bgcolor="#FFFFFF">31,440<img src="/img/pub/egg.gif"/></td>
              <td height="28" bgcolor="#FFFFFF"><script language="javascript" type="text/javascript">chkwin('0','272388');</script></td>
              <td bgcolor="#FFFFFF"><script language="javascript" type="text/javascript">chkStatus('0','272388');</script></td>
            </tr>
        
            <tr align="center" bgcolor="#FFFFFF">
              <td height="32" bgcolor="#FFFaC7">265197</td>
              <td height="28" bgcolor="#f8f8f8">06-07 15:50</td>
              <td bgcolor="#f8f8f8"><script language="javascript" type="text/javascript">chkResult('','-1');</script></td>
              <td bgcolor="#f8f8f8">185</td>
              <td bgcolor="#f8f8f8">422,039<img src="/img/pub/egg.gif"/></td>
              <td height="28" bgcolor="#f8f8f8"><script language="javascript" type="text/javascript">chkwin('0','272387');</script></td>
              <td bgcolor="#f8f8f8"><script language="javascript" type="text/javascript">chkStatus('0','272387');</script></td>
            </tr>
        
            <tr align="center" bgcolor="#FFFFFF">
              <td height="32" bgcolor="#FFFaC7">265196</td>
              <td height="28" bgcolor="#FFFFFF">06-07 15:45</td>
              <td bgcolor="#FFFFFF"><script language="javascript" type="text/javascript">chkResult('','-1');</script></td>
              <td bgcolor="#FFFFFF">8,624</td>
              <td bgcolor="#FFFFFF">109,793,990<img src="/img/pub/egg.gif"/></td>
              <td height="28" bgcolor="#FFFFFF"><script language="javascript" type="text/javascript">chkwin('0','272386');</script></td>
              <td bgcolor="#FFFFFF"><script language="javascript" type="text/javascript">chkStatus('0','272386');</script></td>
            </tr>
        
            <tr align="center" bgcolor="#FFFFFF">
              <td height="32" bgcolor="#FFFaC7">265195</td>
              <td height="28" bgcolor="#f8f8f8">06-07 15:40</td>
              <td bgcolor="#f8f8f8"><script language="javascript" type="text/javascript">chkResult('9 + 9 + 6 = ','34');</script></td>
              <td bgcolor="#f8f8f8">46,232</td>
              <td bgcolor="#f8f8f8">442,326,087<img src="/img/pub/egg.gif"/></td>
              <td height="28" bgcolor="#f8f8f8"><script language="javascript" type="text/javascript">chkwin('1,214','272385');</script></td>
              <td bgcolor="#f8f8f8"><script language="javascript" type="text/javascript">chkStatus('2','272385');</script></td>
            </tr>
        
            <tr align="center" bgcolor="#FFFFFF">
              <td height="32" bgcolor="#FFFaC7">265194</td>
              <td height="28" bgcolor="#FFFFFF">06-07 15:35</td>
              <td bgcolor="#FFFFFF"><script language="javascript" type="text/javascript">chkResult('6 + 0 + 4 = ','20');</script></td>
              <td bgcolor="#FFFFFF">46,790</td>
              <td bgcolor="#FFFFFF">505,894,445<img src="/img/pub/egg.gif"/></td>
              <td height="28" bgcolor="#FFFFFF"><script language="javascript" type="text/javascript">chkwin('2,068','272384');</script></td>
              <td bgcolor="#FFFFFF"><script language="javascript" type="text/javascript">chkStatus('2','272384');</script></td>
            </tr>
        


如上,如何取出源码中每个td中的值。。用C#,谢谢。
搜索更多相关主题的帖子: 元素 html 
2010-06-07 16:32
快速回复:求助,取出html中td元素内容
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.049821 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved