当前位置: 代码迷 >> Android >> jsoup解析td标签的html网页,该怎么解决
  详细解决方案

jsoup解析td标签的html网页,该怎么解决

热度:20   发布时间:2016-04-28 05:33:57.0
jsoup解析td标签的html网页
现在在用jsoup解析一个含有td标签的html网页,生成一个列表。。html代码如下:
 <div id="divRight" style="width:744; float:right; margin-bottom:0px; margin-top:10px;text-align:center;border:0px #000000 solid;padding-right:9px;">

    <table style="background-repeat:repeat-x; background-position:left bottom;" cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
  <tbody>
  <tr>
  
    <!-----左侧导航部分----->
    <td width="100%" valign="top">
    <!--///////////////////////////////////??????????内容开始????????/////////////////////////////////////////////-->
    <table cellspacing="0" cellpadding="0" width="98%" border="0" style="padding-left:10px">
              <tbody>
              <tr>
                <TD valign="top">
                
<link href="/Content/css.css" rel="stylesheet" type="text/css" />

<table cellspacing="0" cellpadding="0" width="98%" border="0">
    <tbody>
        <tr>
            <td colspan="3" class="listTitle" style="text-align: left; border-bottom: 1px #999999 solid;
                margin-top: 10px; line-height: 30px; vertical-align: 80%;">
                通知公告
            </td>
        </tr>
        <!--列表部分-->
        
        <tr>
            <td class="line" align="center" valign="top" width="4%" style="border-bottom: #a0a0a0 1px dashed;
                line-height: 25px">
                <img src="../../content/images/main_07.jpg" style="vertical-align: top;" />
            </td>
            <td align="left" style="border-bottom: #a0a0a0 1px dashed; line-height: 25px">
                
                <a class="LinkStyle" target="_blank" href="/home/detail/3b110e4b-a918-419b-86d7-73221739b6da">
                    第三届北京市大学生书法大赛校内预选赛通知</a>
                
            </td>
            <td align="left" valign="top" width="80px" style="border-bottom: #a0a0a0 1px dashed;
                line-height: 25px">
                [14.03.07]
            </td>
        </tr>
        <!-- 列表结束-->
        
        <tr>
            <td class="line" align="center" valign="top" width="4%" style="border-bottom: #a0a0a0 1px dashed;
                line-height: 25px">
                <img src="../../content/images/main_07.jpg" style="vertical-align: top;" />
            </td>
            <td align="left" style="border-bottom: #a0a0a0 1px dashed; line-height: 25px">
                
                <a class="LinkStyle" target="_blank" href="/home/detail/58955942-a526-4805-9026-5b511af26d8d">
                    第五期人际关系体验及成长小组招募(仅限雁栖湖校区)</a>
  相关解决方案