关于CMS中php代码的问题

关于CMS中php代码的问题,php,content-management-system,Php,Content Management System,我正在尝试修复某人网站中的某些内容 不幸的是,这个网站是建立在一个叫做CMS的网站上的,并且是用PHP构建的。我懂一点php,但我不是这方面的专家 我已经尝试解决以下问题很久了 问题:如果继续,您将在右下角看到缩略图库。图库中有6幅图像。前两个是间隔符(nothing.gif)。问题是,这些间隔棒不是朝右下角来的,而是朝左上角来的。我认为是谁开发了它,用nothing.gif填充所有内容,然后用图像替换,但它们是从右到左…而不是从左到右 下面是代码,我看不懂 <tr> <

我正在尝试修复某人网站中的某些内容

不幸的是,这个网站是建立在一个叫做CMS的网站上的,并且是用PHP构建的。我懂一点php,但我不是这方面的专家

我已经尝试解决以下问题很久了

问题:如果继续,您将在右下角看到缩略图库。图库中有6幅图像。前两个是间隔符(nothing.gif)。问题是,这些间隔棒不是朝右下角来的,而是朝左上角来的。我认为是谁开发了它,用nothing.gif填充所有内容,然后用图像替换,但它们是从右到左…而不是从左到右

下面是代码,我看不懂

<tr>
    <td class="galleryThumbs">
        <div class="sepinator"></div>
        <div class="extlinkinator">
            <a href="javascript:extClick();" id="externalLink"></a>
        </div>
        <div class="paginator">
            <a href="javascript:leftClick();" id="arrowL" class="arrowL0"><img src="/templates/images/nothing.gif" width="12" height="11" border="0" alt="" /></a>
            <a href="javascript:rightClick();" id="arrowR" class="arrowR0"><img src="/templates/images/nothing.gif" width="12" height="11" border="0" alt="" /></a>
       </div>
       <br clear="all" />
       <a href="javascript:setBig('8');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb8" /></a>
       <a href="javascript:setBig('7');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb7" /></a>
       <a href="javascript:setBig('6');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb6" /></a>
       <a href="javascript:setBig('5');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb5" /></a>
       <br>
       <a href="javascript:setBig('4');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb4" /></a>
       <a href="javascript:setBig('3');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb3" /></a>
       <a href="javascript:setBig('2');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb2" /></a>
       <a href="javascript:setBig('1');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb1" /></a>
       ~3*GALLERY_THUMBS_ALT[where=a.topicID='~1#tid#']*
       <br />
       <img src="/templates/images/nothing.gif" width="339" height="1" border="0" alt="" /></td>
</tr>

首先在css中搜索类“.gallerySmallEmpty”,然后查看其中的内容。。尽管我认为您只需将代码更改为:

<tr>
    <td class="galleryThumbs">
        <div class="sepinator"></div>
        <div class="extlinkinator">
            <a href="javascript:extClick();" id="externalLink"></a>
        </div>
        <div class="paginator">
            <a href="javascript:leftClick();" id="arrowL" class="arrowL0"><img src="/templates/images/nothing.gif" width="12" height="11" border="0" alt="" /></a>
            <a href="javascript:rightClick();" id="arrowR" class="arrowR0"><img src="/templates/images/nothing.gif" width="12" height="11" border="0" alt="" /></a>
       </div>
       <br clear="all" />
       <a href="javascript:setBig('1');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb8" /></a>
       <a href="javascript:setBig('2');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb7" /></a>
       <a href="javascript:setBig('3');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb6" /></a>
       <a href="javascript:setBig('4');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb5" /></a>
       <br>
       <a href="javascript:setBig('5');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb4" /></a>
       <a href="javascript:setBig('6');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb3" /></a>
       <a href="javascript:setBig('7');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb2" /></a>
       <a href="javascript:setBig('8');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb1" /></a>
       ~3*GALLERY_THUMBS_ALT[where=a.topicID='~1#tid#']*
       <br />
       <img src="/templates/images/nothing.gif" width="339" height="1" border="0" alt="" /></td>
</tr>



~3*GALLERY_THUMBS_ALT[where=a.topicID='~1#tid']*
  • 请注意,我更改了图库演示文稿的顺序(编号)

在这段代码之后,图库看起来是这样的:我还将GallerySmollEmpty添加到了问题中对不起,将每个图像库末尾的id=“thumb8”更改为javascript中的相应数字:setBig('8'),那应该足够了。我也这么做了,但即使这样也不行:(好的,不用担心。它正在工作。谢谢。但是有没有可能让图库的底部与大图像的结束位置对齐?再次感谢!这取决于图库缩略图上方的内容,因为当您向其中添加更多文本时,它可能会展开。例如,您可以尝试设置div(或其他元素)在拇指库上方具有最小高度,因此拇指在图像结束的位置结束。
<tr>
    <td class="galleryThumbs">
        <div class="sepinator"></div>
        <div class="extlinkinator">
            <a href="javascript:extClick();" id="externalLink"></a>
        </div>
        <div class="paginator">
            <a href="javascript:leftClick();" id="arrowL" class="arrowL0"><img src="/templates/images/nothing.gif" width="12" height="11" border="0" alt="" /></a>
            <a href="javascript:rightClick();" id="arrowR" class="arrowR0"><img src="/templates/images/nothing.gif" width="12" height="11" border="0" alt="" /></a>
       </div>
       <br clear="all" />
       <a href="javascript:setBig('1');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb8" /></a>
       <a href="javascript:setBig('2');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb7" /></a>
       <a href="javascript:setBig('3');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb6" /></a>
       <a href="javascript:setBig('4');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb5" /></a>
       <br>
       <a href="javascript:setBig('5');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb4" /></a>
       <a href="javascript:setBig('6');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb3" /></a>
       <a href="javascript:setBig('7');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb2" /></a>
       <a href="javascript:setBig('8');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb1" /></a>
       ~3*GALLERY_THUMBS_ALT[where=a.topicID='~1#tid#']*
       <br />
       <img src="/templates/images/nothing.gif" width="339" height="1" border="0" alt="" /></td>
</tr>