【发布时间】:2020-04-05 11:13:58
【问题描述】:
有什么办法可以自定义chrome 78+的tab悬停卡吗? 自定义是指更改悬停卡片的文本。
页面打开为空白,然后使用写入功能添加 html 文本。然后我改了标题。
var win = window.open();
win.document.write(htmlText);
win.document.title = htmlFileName
我的实际问题是,当我将鼠标悬停在标签上时,它会显示“Loading...”而不是实际的标题(htmlFileName 的值)。
“我知道要求用户将 chrome 标志 tab-hover-cards 设置为禁用不是一个好办法” 另外,解决方案应该支持ie9+
【问题讨论】:
-
更新:
window.stop();、document.close();无效。 -
您能找到解决方案吗?
标签: javascript html google-chrome-flags