开发者

display image in new page

开发者 https://www.devze.com 2023-02-02 14:08 出处:网络
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

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>
0

精彩评论

暂无评论...
验证码 换一张
取 消