1
這是我的谷歌瀏覽器擴展的html文件。它是彈出窗口的一部分。我嘗試了很多東西,圖片本身也有效。當我將圖片拖到新的標籤欄時,它會打開我想要的鏈接,但點擊時不起作用。谷歌Chrome擴展彈出式窗口圖像鏈接不起作用
我試圖解決這個問題,使用基本標記,這允許點擊圖像發送給我的鏈接,但無法加載圖像。
{
"name": "RSS Fetcher",
"version": "0.1",
"manifest_version": 2,
"description": "Keep up with the latest from [insert web site here].",
"icons": {"128" : "sample-128.png"},
"homepage_url": "http://www.youtube.com",
"browser_action": {
"default_icon": "sample-128.png",
"default_title": "Youutube Fetcher",
"default_popup": "Revisionpage.html"
}
}
(html code)
<head>
<title> Revision resources </title>
</head>
<body>
<a href="http://www.bbc.co.uk/education"> <img src="http://ichef.bbci.co.uk/images/ic/144x144/p03ppzm0.jpg" width="100px" height="100px" ></a>
<a href = "https://www.youtube.com/channel/UC3yA8nDwraeOfnYfBWun83g"> <img src = "http://www.tubegeeks.com/wp-content/uploads/2013/05/YouTube- Education.jpg" width = "100px" height = "100px" > </a>
</body>
非常感謝。完美的作品! – Stackunderflow
太好了。你能接受這是正確的答案嗎? –