我的页面是用php脚本构建的,并且标题设置如下
header("Content-Type: text/plain");
我可以做些什么来设置我的打印文字的图标或标题吗?
谢谢
该图标图标是链接标记或属性,放置在text/html
区域的<head>
文档中,并且cannot从标题放置。
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
<link rel="shortcut icon" type="image/png" href="http://example.com/favicon.png"/>
请将您的网站图标放在HTML的head部分。签出我的代码。
<head>
<meta charset="utf-8">
<title>Chat</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
就是这样。