【发布时间】:2015-02-04 18:11:41
【问题描述】:
我正在尝试使用 php DOM 在 html 中的“thumbnailCarousel”div 中获取图像的 src。但不知何故 loadHTML 不包含此元素。它与html中的javascript函数有关吗?任何建议或解决方法表示赞赏。谢谢!
div:
<div class="thumbnailCarousel" data-jcarousel="true"><ul style="left: 0px; top: 0px;">
<ul style="left: 0px; top: 0px;">
<li>
<img src="http://images.crocs.com/is/image/Crocs/12300_6Z1_ALT100?&fmt=jpeg&qlt=85,1&op_sharpen=0&resMode=sharp2&op_usm=1,1,6,0&iccEmbed=0&printRes=72&wid=60&hei=72" alt="100">
</li>
<li>
<img src="http://images.crocs.com/is/image/Crocs/12300_6Z1_ALT100?&fmt=jpeg&qlt=85,1&op_sharpen=0&resMode=sharp2&op_usm=1,1,6,0&iccEmbed=0&printRes=72&wid=60&hei=72" alt="100">
</li>
</ul>
</div>
【问题讨论】: