php遍历产品,js点击缩略图显示对应的大图
{foreachfrom=$goods_listitem=goods}<tr><tdstyle="width:10%;font-size:16px;border-bott...
{foreach from=$goods_list item=goods}
<tr>
<td style="width: 10%;font-size: 16px;border-bottom:1px solid #ccc;"><a name='fff' href='javascript:void(0);' onclick='picBig();'><img style="width:50px;height: 50px;" src="{$goods.original_img}"/></a></td>
<div id="divCenter" align="center" style="position: absolute; z-index: 9; display: none; background-color: #eee; width:400px; height:400px;left:50px;top:50px; border:1px solid #222;">
<a href="javascript:void(0);" onclick="picClose();"> <img src="{$goods.original_img}" /></a>
</div> 展开
<tr>
<td style="width: 10%;font-size: 16px;border-bottom:1px solid #ccc;"><a name='fff' href='javascript:void(0);' onclick='picBig();'><img style="width:50px;height: 50px;" src="{$goods.original_img}"/></a></td>
<div id="divCenter" align="center" style="position: absolute; z-index: 9; display: none; background-color: #eee; width:400px; height:400px;left:50px;top:50px; border:1px solid #222;">
<a href="javascript:void(0);" onclick="picClose();"> <img src="{$goods.original_img}" /></a>
</div> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询