<p class="my-image my-image-zoom">
<div id="wrap" style="top:0px;z-index:9999;position:relative;"><a href="http://img3.mysite.com/image.jpg" class="cd-zoom" id="prozoom" rel="adjustX: 5, zoomWidth:526, zoomHeight:440, adjustY:-1" style="position: relative; display: block;">
<img width="400" height="440" id="image" src="http://img3.mysite.com/image.jpg" style="display: block;"></a><div class="mousetrap" style="background-image: url(http://www.mysite.com/); z-index: 999; position: absolute; width: 400px; height: 440px; left: 0px; top: 0px; cursor: move;"></div></div>
</p>
我试过了
preg_match_all('/product-image-zoom">(.*?)/s',$url,$sav);
print_r($sav);
我喜欢剪辑图像源。最终我从类名中获取所有值开始。我没有发现我的代码有效。任何人都可以帮助我获得图像的来源吗?