如何打开链接到新的选项卡使用HTML的PDF文件 [英] How to open link to pdf file in new tab using html

查看:168
本文介绍了如何打开链接到新的选项卡使用HTML的PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个html页面,其中包含打开pdf文件的链接。然而,当我点击它时,这个链接在Adobe Reader中打开。我已经将目标属性设置为空白。但它也不起作用。
我想在同一个窗口的新标签页中打开这个pdf文件。 target =_ blank是正确的方法 - 但是如果在新标签中打开,新窗口或者adobe阅读器依赖于用户的浏览器设置,不能(也不应该! )由你控制。


I have an html page which contains link to open pdf file. however this link opens in adobe reader when i click on it. I have set target property to blank. but it doesn't work either. I want to open this pdf file in new tab in the same window.

解决方案

target="_blank" is the right way - but if it opens in a new tab, a new window or the adobe reader depends on the users browser-settings and can't (and shouldn't!) be controlled by you.

这篇关于如何打开链接到新的选项卡使用HTML的PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆