Heim  >  Artikel  >  Backend-Entwicklung  >  php数组遍历问题,js问题,主要是点击产品缩略图,进行点击事件发大,

php数组遍历问题,js问题,主要是点击产品缩略图,进行点击事件发大,

WBOY
WBOYOriginal
2016-08-23 09:02:28831Durchsuche

php数组遍历问题,js问题,主要是点击产品缩略图,进行点击事件发大,
php数组遍历问题,js问题,主要是点击产品缩略图,进行点击事件发大,
现在是点击第一张图和下面几张图都是现实第一张放大图
代码如下
{foreach from=$goods_list item=goods}

<code>        <tr>
            <td style="width: 10%;font-size: 16px;border-bottom:1px solid #ccc;"><a name="fff" href="javascript:void(0);" onclick="picBig();"><img    style="max-width:90%" src="%7B%24goods.original_img%7D" alt="php数组遍历问题,js问题,主要是点击产品缩略图,进行点击事件发大, " ></a></td>
<p></p>
<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;">
<pre class="brush:php;toolbar:false"><code>           <a href="javascript:void(0);" onclick="picClose();"> <img  src="%7B%24goods.original_img%7D" alt="php数组遍历问题,js问题,主要是点击产品缩略图,进行点击事件发大, " ></a>

        </code>
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:如何用php生成能提现层次结构的json格式的数据? Nächster Artikel:javascript - 这种商家管理自己店面房间桌台的布局该怎么设计?

In Verbindung stehende Artikel

Mehr sehen