我正在使用两个html文件01-default.html和17-responsive.html。在第一个html页面中有网格视图图像,当点击任何图像时,从第二个html文件中显示相应的带有页眉和页脚的全尺寸图像......
01-default.html page
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页面中的第一张图片。我希望整个类显示全尺寸图像,页眉和页脚。甚至改变了,仍然没有为我工作。请帮帮我......
答案 0 :(得分:1)
01-default.html page
<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>
我现在对您的代码进行一些更改尝试此操作。