iT邦幫忙

0

瀏覽器PDF鑲嵌連結點擊後視窗問題

求救
請問如何讓瀏覽器的PDF,上面鑲嵌連結點擊後,不是另外跳出視窗,而是在原畫面iframe的框架內呈現呢?

請版上知道的大大幫回答,感謝QQ

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

2
ccutmis
iT邦高手 2 級 ‧ 2019-07-22 17:20:15

一個簡單的範例提供給您參考...
/images/emoticon/emoticon82.gif

<!doctype html>
<html>
<head></head>
<body>
<a href="https://www.cse.unsw.edu.au/~en1811/python-docs/python-3.6.4-docs-pdf/tutorial.pdf" target="iframeObj">
    把PDF檔載入到iframe中
</a>
<iframe src="" name="iframeObj" style="width:90vw;height:90vh;"></iframe>
</body>
</html>
dragonH iT邦超人 5 級 ‧ 2019-07-22 17:32:40 檢舉

原來這樣真的可以

我在 codepen 一直試 都無法成功/images/emoticon/emoticon17.gif

ccutmis iT邦高手 2 級 ‧ 2019-07-22 17:33:14 檢舉

/images/emoticon/emoticon77.gif

我要發表回答

立即登入回答