Is editing the <title> text using css possible? [duplicate]

孤街浪徒 提交于 2021-02-10 06:08:14

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/40859846/is-editing-the-title-text-using-css-possible

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!