谁能帮我分一下。

myhstone 2004-07-31 10:04:27
帮我把下面这个代码中的第一个<table>..</table>中的东西抠出来。我要郁闷死了。 或者说把一个网页中的某个<table>...</table>抠出来。

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<p style="line-height: 150%">·<a href=show.php?id=13>城镇建设</a>

·<a href=show.php?id=15>副市长李士来到我镇调研</a>

·<a href=show.php?id=18>枳沟着力膨胀三大骨干产业</a>

·<a href=show.php?id=19>枳沟4000老人喜获优待证</a>

·<a href=show.php?id=17>我镇团委被团市委授予“五四红旗团委”称号</a>

</td>
</tr>
</table>
<table border="0" width="98%" cellspacing="0" cellpadding="0" height="68">
<tr>
<td width="100%" height="14"></td>
</tr>
<tr>
<td width="100%" style="border: 1 solid #C68610" height="54" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="23" bgcolor="#C68610">
<tr>
<td width="7%" height="23">
<p align="center"><img border="0" src="template/type3/image/089.gif" width="18" height="14">
</td>
<td width="93%" height="23" class=M><font color="#FFFFFF">网站地图</font></td>
</tr>
</table>
</table>

变成:
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<p style="line-height: 150%">·<a href=show.php?id=13>城镇建设</a>

·<a href=show.php?id=15>副市长李士来到我镇调研</a>

·<a href=show.php?id=18>枳沟着力膨胀三大骨干产业</a>

·<a href=show.php?id=19>枳沟4000老人喜获优待证</a>

·<a href=show.php?id=17>我镇团委被团市委授予“五四红旗团委”称号</a>

</td>
</tr>
</table>
这样,我只要前面这一部分。
...全文
123 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
黑马 2004-07-31
  • 打赏
  • 举报
回复
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<p style="line-height: 150%">·<a href=show.php?id=13>城镇建设</a>

·<a href=show.php?id=15>副市长李士来到我镇调研</a>

·<a href=show.php?id=18>枳沟着力膨胀三大骨干产业</a>

·<a href=show.php?id=19>枳沟4000老人喜获优待证</a>

·<a href=show.php?id=17>我镇团委被团市委授予“五四红旗团委”称号</a>

</td>
</tr>
</table>

21,893

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧