The requirements of this article is very simple: Click on the picture to see the big picture, and then point to hide the big picture. More for the mobile end, because the mobile side screen is small, you may need to view the larger image.
Specific implementation code
jquery implementation Mobile End Click picture to see the big picture special effects need to use the skill
Need to click on the picture 1, 2, 3, 44 small map to see the big picture, and the following button switch is needed to switch at the same time 4 small picture.
Because the mobile side cannot add hotspots, the final solution is to use the four a tag to navigate to the upper left corner, the upper right corner, the lower left corner, and the lower right corner of the four areas.
<dl>
<dd style= "Display:block;" >
<a href= "javascript:;" src= "images/11.jpg" class= "TopLeft" $ (this). Imgzoomin (); " ></a>
<a href= "javascript:;" src= "images/12.jpg" class= "TopRight" $ (this). Imgzoomin (); " ></a>
<a href= "javascript:;" src= "images/13.jpg" class= "Bottomleft" $ (this). Imgzoomin (); " ></a>
<a href= "javascript:;" src= "images/14.jpg" class= "BottomRight" $ (this). Imgzoomin (); " ></a>
</dd>
...
</dl>
Css
. topleft,.topright,.bottomleft,.bottomright{
width:50%;
height:50%;
Position:absolute
}
. topleft{
/*background-color:red;*/
top:0;
left:0
}
. topright{
/*background-color:green;*/
top:0;
right:0
}
. bottomleft{
/*background-color:blue;*/
bottom:0;
left:0
}
. bottomright{
/*background-color:yellow;*/
bottom:0;
right:0;
}
The above is the mobile end click on the picture to see the realization of the big picture, I hope to help you learn.