正在编辑< title>使用CSS文字可能吗? [英] Is editing the <title> text using css possible?

查看:49
本文介绍了正在编辑< title>使用CSS文字可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在任何地方都找不到答案,有没有办法使用CSS编辑< title> exampletext</title> ,例如给它一个粗体"的粗细或颜色:红色?

Can't find the answer anywhere, is there a way to edit the <title>exampletext</title> using css to give it for example a 'bold' weight or color: red?

推荐答案

否,但是在js中,您可以编辑或修改标题本身,但无法应用CSS抱歉

No, but in js you can edit or modify title itself but no way to apply css sorry

<script type="text/javascript">

    $(document).ready(function() {
        document.title = 'new title';
    });

</script>

但是您可以做类似的事情

however you can do something like

head { display: block; }
title { display: block; font-size: 200%; font-weight: bold; }

但同样,它不能按照您的意愿完美地工作

but again this wont work excatly as you want

这篇关于正在编辑&lt; title&gt;使用CSS文字可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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