我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在图像点击的新窗口中打开PDF

I want to open a PDF file in a new browser window when user clicks on the image. I saw the other links but not found what I am looking for.

Any PHP/HTML way to do this?

<a href="path-to-my.pdf" target="_blank"><img src="image.gif" alt="my shiny PDF" border="0"/></a>
<a href="mypdf.pdf" target="_blank"><img src="image.png" width="320" height="240" alt="My Super Awesome PDF" /></a>

近期文章

  • PHP基础导航帮助
  • 在PHP中读入外部链接
  • 从jquery ajax调用返回数据
  • 如何使用mysql选择多个表?
  • php从查询返回一个特定的行
  • 如何使用php从[pdf]文件中提取图像[关闭]
  • 使用单个键从关联数组中删除键
  • PHP函数检查是否可以创建某种类型的对象?
  • 如果出现用于制作功能按钮的语句?
  • 使用PHP读取远程文件
  • 如何在php中用''替换Ê?
  • 过于具体的mysql查询无法正常工作
  • 网页标题
  • 为什么我收到“意外的T_STRING错误”
  • 简单的PHP问题
  • 通过AJAX查询获取多个值
  • 我怎样才能避免php中的getimage()警告消息
  • 正确显示mysql时间戳
  • 表单提交问题
  • PHP文件上传麻烦

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华