用javascript获取那些<img/>的dom对象,然后.offsetLeft和.offsetTop啊
【 在 faintbaobao (豆豆爸爸) 的大作中提到: 】
: 标 题: 求教:关于html坐标问题
: 发信站: 水木社区 (Mon Aug 17 12:08:16 2009), 站内
:
: 各位大侠,我是刚接触html语言,我有一个html语言如下,我想得到下面html中所涉及到的图片的具体坐标,不知道通过程序怎样才能自动生成?html语言在网页中显示时有没有关于位置的什么算法?
: 谢谢!
:
: ......
: <table id="__01" width="1921" height="1080" border="0" cellpadding="0" cellspacing="0">
: <tr>
: <td>
: <img src="images/GaoLYX_pop_setup.nor_01.png" width="425" height="632" alt=""></td>
: <td>
: <img src="images/GaoLYX_pop_setup.nor_02.png" width="177" height="632" alt=""></td>
: <td>
: <img src="images/GaoLYX_pop_setup.nor_03.png" width="36" height="632" alt=""></td>
: <td>
: <img src="images/GaoLYX_pop_setup.nor_04.png" width="175" height="632" alt=""></td>
: <tr>
: <td rowspan="2">
: <img src="images/GaoLYX_pop_setup.nor_11.png" width="425" height="82" alt=""></td>
: <td rowspan="6">
: <img src="images/still_subtitle_static.png" width="177" height="229" alt=""></td>
: <td rowspan="2">
: <img src="images/group_chineses_blank.png" width="36" height="82" alt=""></td>
: <td rowspan="2">
: <img src="images/button_chineses_nor.png" width="175" height="82" alt=""></td>
: </tr>
: .......
: --
:
: ※ 来源:·水木社区
http://newsmth.net·[FROM: 203.86.69.*]
--
FROM 221.218.140.*