douxun7992 2016-01-19 08:42
浏览 118

HTML和CSS如何在浏览器选项卡中居中图标和标题[重复]

This question already has an answer here:

I wondered how to center the favicon and title in a browser tab.

The basic code was

<title>center me please</title>

Then I attempt 3 times below:

 <center><title>Center me please</title></center>



 <title><center>Center me please</center></title>



 <title style="text-align:center">Center me please</title>

None was working though :(

</div>
  • 写回答

1条回答 默认 最新

  • dongpiao8821 2016-01-19 08:45
    关注

    The <title></title> is for the <head></head> section of the HTML document.

    You can't add css style attributes to it.

    Permitted content Text that is not inter-element whitespace.

    ...

    The HTML <title> element defines the title of the document, shown in a browser's title bar or on the page's tab. It can only contain text and any contained tags are not interpreted.

    See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title

    评论

报告相同问题?

悬赏问题

  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services