Favicon没有显示使用window.open打开的页面

时间:2016-01-13 10:12:51

标签: javascript html angularjs

我创建了一个页面,上面写着A,我添加了一个链接

<a href="#" ng-click="printMe()">print</a>

现在,当我点击打印时,该功能会window.open().document.write(html); 这个html变量包含用于在打印视图中显示数据的html标签 -

html="<html>";
html +="<head><link rel='shortcut icon' href='favicon.ico' type='image/vnd.microsoft.icon' >";
....
...

在新标签页中打开的新页面无法显示图标。而在父页面中使用相同的标签显示它。当我检查源时,它显示ico图像存在。

0 个答案:

没有答案