使用具有 2 个属性的 Simple_Html_Dom Find
有谁知道我如何使用 simple_html_dom 的 find 函数来查找指定 2 个属性而不是 1 个属性的 html 元素?
就像现在我正在使用
$area2 = $html->find('td[width="450"]');
但是说我还想指定对象的高度等
我该怎么做?
谢谢!
Does anyone know how i could use simple_html_dom's find function to find an html element specifying 2 attributes instead of 1?
Like right now I was using
$area2 = $html->find('td[width="450"]');
but say I want to also specify the height for the object, etc
How could I do it?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我希望
$html->find('td[width=450][height=450]');
能够工作,但显然不行。这有效:
这也是如此:
I was hoping that
$html->find('td[width=450][height=450]');
would work, but apparently not.This works:
And so does this: