引用 smith:恩
想帮妹子一下,不过恰巧没学过C Sharp,找到对应坐标干嘛,打算发点击事件吗,不如直接正则表达式分析超链接吧
不过方案被否决了
<code class="lang-c">private void button1_Click(object sender, EventArgs e) { int i = 4; hec = hd.Links; //网页超链接列表 HtmlElement he = hec<i>; Point temp = GetOffset(he); MessageBox.Show(string.Format("Tite = {2} x = {0},y = {1}",temp.X,temp.Y,he.OuterText)); } public Point GetOffset(HtmlElement el) { //get element pos Point pos = new Point(el.OffsetRectangle.Left, el.OffsetRectangle.Top); //get the parents pos HtmlElement tempEl = el.OffsetParent; while (tempEl != null) { pos.X += tempEl.OffsetRectangle.Left; pos.Y += tempEl.OffsetRectangle.Top; tempEl = tempEl.OffsetParent; } return pos; } var point = GetOffset(element); var x = point.X; var y = point.Y;</i></code>
时段 | 个数 |
---|---|
{{f.startingTime}}点 - {{f.endTime}}点 | {{f.fileCount}} |
200字以内,仅用于支线交流,主线讨论请采用回复功能。