是否可以点击标题栏中显示的标题? [英] Is it possible to strike the title shown in the title bar?

查看:102
本文介绍了是否可以点击标题栏中显示的标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以点击标题

<title><s>My Title</s></title>

像这样,以便标题栏显示我的标题
还是可以使用CSS解决此问题?

like this, so that the titlebar will show My Title? Or is there a way to solve this with css?

推荐答案

来自 < title> 元素上的MDN

From MDN on the <title> element:


HTML标题元素定义文档的标题,
显示在浏览器的标题栏中或页面的选项卡上。 它只能包含文本,并且任何包含的标签都不会被解释。

所以不,它无法完成

更新:

其他答案建议使用各种unicode组合字符来完成击打,即使这是可能的并且可以产生不错的结果,但我相信它有很大的缺陷。

Other answers suggest using various combinations of unicode characters to accomplish a strike through, and even though that might be possible and could yield a decent result, I believe it comes with a large drawback.

我不是根据我的了解,并根据Google的说法,SEO可以是任何形式的SEO专家。搜索引擎优化入门指南 < title> 在以下情况下非常重要涉及搜索引擎优化。他们的指南建议您应该避免

I'm not an expert in SEO in any way, but from what I know, and according to Googles Search Engine Optimization Starters Guide the <title> is of great importance when it comes to search engine optimization. Their guide suggest that you should avoid:


  • 选择与页面内容无关的标题

  • 使用默认标题或模糊标题,例如无标题或新建页面1

我的解释是,在标题中使用晦涩的字符将直接违反该规则,因此基于此,我强烈建议您避免使用它。

My interpretation would be that using obscure characters in your title would be a direct violation of that, so based on that I would strongly suggest that you avoid it.

这篇关于是否可以点击标题栏中显示的标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆