我有一个包含页面的html页面,并且我想通过单击直接从浏览器打印页面时,增加生成的页面标题的字体大小 Ctrl + P
我对此要求进行了很多搜索,但没有找到任何解决方案。
我们无法在标记内设置文本样式的想法,有人可以提出破解或其他解决方案的建议吗?
请注意,我需要这种方式来显示标题,我不想创建标签并设置样式,然后在所有页面中显示它。
<head>
<title> When print the page, the generated title taken from this tag but we cannot styling this text!! </title>
</head>
更新: 我的问题没有像社区成员所理解的那样重复,他说我的问题与此重复:
How to make print use desktop media queries?
How can I have different CSS when I print or print preview?
同样,这不是我要查找的内容,请仔细阅读我的问题。我想在打印模式下设置生成的标题的样式。