1

我正在使用两个 html 文件 01-default.html 和 17-responsive.html。第一个 html 页面中有网格视图图像,当单击任何图像时,会从第二个 html 文件显示相应的带有页眉和页脚的全尺寸图像...

01-default.html页面

ul id="Gallery" class="gallery">

    <li><a href='17-responsive.html#swiper-slide red-slide' ><img src="images/thumb/a.jpg" alt="Image a" width="230" height="348"/></a></li>
    <li><a href='17-responsive.html#swiper-slide blue-slide' ><img src="images/thumb/b.jpg" alt="Image b" width="230" height="348"/></a></li>
    <li><a href='17-responsive.html#swiper-slide orange-slide' ><img src="images/thumb/c.jpg" alt="Image c" width="230" height="348"/></a></li>
    </ul>   
 </div>

17-responsive.html 页面

 <div class="swiper-slide red-slide">
  <div >
   <img id="scream1" src="file:///android_res/drawable/a.jpg" >    
   <div class="Footer1">
 </div>
<div class="Header">
  </div>  
   </div>                        

 </div>                

        <div class="swiper-slide blue-slide">            
    <img id="scream2" src="file:///android_res/drawable/b.jpg" > 
  <div class="Footer1">
 </div>
<div class="Header">
  </div>  
   </div>           

     </div>

  <div class="swiper-slide orange-slide">
  <img id="scream3" src="file:///android_res/drawable/c.jpg" >       
           <div class="Footer1">
 </div>
<div class="Header">
  </div>  
   </div>               
     </div>

这里的问题是默认情况下单击哪个图像会显示来自 17-responsive.html 页面的第一张图像。我希望整个班级都以全尺寸图像、页眉和页脚显示。即使改变了,对我来说仍然没有效果。请帮我...

4

1 回答 1

1

01-default.html页面

<ul id="Gallery" class="gallery">
    <li><a href='17-responsive.html#red-slide.swiper-slide' ><img src="images/thumb/a.jpg" alt="Image a" width="230" height="348"/></a></li>
    <li><a href='17-responsive.html#blue-slide.swiper-slide' ><img src="images/thumb/b.jpg" alt="Image b" width="230" height="348"/></a></li>
    <li><a href='17-responsive.html#orange-slide.swiper-slide' ><img src="images/thumb/c.jpg" alt="Image c" width="230" height="348"/></a></li>
</ul>

17-responsive.html 页面

<div class="swiper-slide" id="red-slide">
  <div >
    <img id="scream1" src="file:///android_res/drawable/a.jpg" >    
    <div class="Footer1"></div>
    <div class="Header"></div>  
  </div>                        
</div>                

<div class="swiper-slide" id="blue-slide">
   <div>    
      <img id="scream2" src="file:///android_res/drawable/b.jpg" > 
      <div class="Footer1"></div>
      <div class="Header"></div>  
   </div>           
</div>

<div class="swiper-slide" id="orange-slide">
  <div>
       <img id="scream3" src="file:///android_res/drawable/c.jpg" >       
       <div class="Footer1"></div>
       <div class="Header"></div>  
  </div>               
</div>

我对您的代码进行了一些更改,现在试试这个。

于 2013-10-23T07:01:29.550 回答