繁体   English   中英

如何在浏览器选项卡标题中显示完整的文本

[英]How to show the complete text in the browser tab title

HTML

<!DOCTYPE html>
<html>
  <head>
  <title>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here,</title>
  </head>
  <body>
    <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/Honeycrisp.jpg/800px-Honeycrisp.jpg" title = "사과입니다.!!!" width="250px;">
  </body>
</html>

上面简单的 html 文件包含标题标签和一些段落作为文本。 运行页面时,标题被截断并显示省略号为... 如何在浏览器选项卡标题中显示完整文本?

我正在使用 angular 13 将组件的标题设置为: https://angular.io/guide/set-document-title

您不能在网页标题中显示整个段落。 通常只有 25-30 个字符可见。 所以尽量简洁你的标题。

您可以使用元标记放置一个段落,这将有助于 SEO 并且适用于机器人。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM