html - 打开新标签页阅读 PDF 文件

标签 html css

我可能在这里遗漏了一些简单的东西,但无论如何我都会问。我已经创建了一个打开 PDF 文件的链接,但是它在当前选项卡中打开,而不是在新选项卡中打开。我应该在 HTML 中使用什么代码来打开一个新选项卡来阅读 PDF 文件。

<div class="footer_box_content">
    <div class="cleaner_h10"></div>
    <p>Many  thanks  to  everyone  who cleared snow and ice during the cold spell in February.
    Should Arctic conditions return, each block has a shovel and a jar of rock salt  to  clear  the  steps. 
    Please click more to read the full newsletter.</p>
    <div class="button_01"><a href="newsletter_01.pdf">Read more</a></div>
</div>

最佳答案

<a href="newsletter_01.pdf" target="_blank">Read more</a>

Target _blank 将强制浏览器在新窗口中打开它

关于html - 打开新标签页阅读 PDF 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16925481/

相关文章:

html - 移动 View 上的导航栏和页脚未对齐 - Bootstrap

css - Windows 上的 Firefox 中的大字体不流畅

html - 当里面有很多文字时,在 textarea 中打字 super 慢

css - 同一 DIV 中每个段落的不同 CSS 样式

javascript - 如何找到从json生成的html元素的id

java - awt/swings 中显示网页并访问它的最佳组件

html - 如何在 textarea 元素中添加新行?

javascript - morris 图表 -> html 将变量传递给 php

php - 在 JQuery 上注入(inject)一些包含 PHP 的 CSS

javascript - 设置默认 Twitter 小部件的样式问题