问题
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