转换标题元素的文本
是否可以“反映”浏览器窗口的标题文本?例如,单词“mirror”将变为“rorrim”,其中字符也面向相反方向。如果它不能在每个浏览器中工作也没关系,但要求用户安装某些东西并不是一个选择。
谢谢!
Is it possible to "reflect" the title text of the browser window? For example the word "mirror" would become "rorrim" with the characters also facing the opposite direction. It's OK if it doesn't work in every browser, but asking the user to install something isn't an option.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您不反对纯 JavaScript,您可以将其添加到
title
标记之后。确保为title
提供标题的id
。If you are not opposed to plain javascript, you could add this after the
title
tag. Make sure to give thetitle
anid
of title.下面使用
输入
字段中的值并输出与其反转值连接的值。演示:jsfiddle.net/42umy (编辑)
The following uses the value from an
input
field and outputs it's value concatenated with it's value reversed.Demo: jsfiddle.net/42umy (edit)
标题文本不能以任何方式设置样式。然而,在 IE9 中,有一个名为 classic shell 的插件
但它不会做你所要求的事情。
The title text cannot be styled in any way. In IE9, however there is a plugin called classic shell
It wont do what you are asking though.