如何通过JavaScript访问Table中的各个元素,如Table中的一张图片?谢谢

Keri 2003-01-08 03:18:07
请大家帮忙解答一下,谢谢。
...全文
66 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
wsj 2003-01-09
  • 打赏
  • 举报
回复
<table>
<tr><td><img id=type_here_your_id_string></td>
</table>
Keri 2003-01-09
  • 打赏
  • 举报
回复
Hei, lkenshin:
How can I specify an ID for the object in the table cell?Can you tell me in detail?

Thanks in advance.
lkenshin 2003-01-08
  • 打赏
  • 举报
回复
或者,给要访问的对象规定一个id
wsj 2003-01-08
  • 打赏
  • 举报
回复
DHTML:

table.rows[i]
table.cells[i,j]
table.rows[i].cells[j]

DOM:

table.childNodes
table.nextSibling
...

61,125

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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