I had soluation which display images and I want when click on displayed image to display in new page with it,s original 开发者_如何学JAVAsize.So what can I do?
You can simply link directly to the image, if you just want the image to display.
<a href="path to image"><img src="path to image" alt="" target="_blank" /></a>
target="_blank"
will open it in a new window/tab.
Just inspect one of the images on stackoverflow by Firebug and change the href
of a
tag
<a title="" target="_blank" rel="nofollow"
href="http://static.adzerk.net/Advertisers/3099.jpg">
<img width="220" height="250" border="0" alt="" title=""
src="http://static.adzerk.net/Advertisers/3099.jpg">
</a>
精彩评论