我在font-size
标签中有h1
,在许多页面中有各种尺寸,但我想将它们全部标准化为25px
,但是当我试图在页面的style
部分添加head
时,它根本没有反映出变化。如何用所需的覆盖原始的font-size
?
h1 {font-size: 25px!important}
<h1 align="center">
<span style="font-size: 10pt" lang="ar-sa">
<a style="text-decoration: none" href="example.come">
<font color="#008000">Title here</font></a></span></h1>
路径存在问题,如果你的html与所有标题相同,那么你可以在你的css中使用这种类型的路径
建议css
h1> span> a {font-size:25px!important}
这是你的h1
的字体大小,但因为你有span
的内联样式。所以你需要覆盖font-size
不仅仅是你的h1
而是span
。
h1 span {font-size: 25px!important}
<h1 align="center">
<span style="font-size: 10pt" lang="ar-sa">
<a style="text-decoration: none" href="example.come">
<font color="#008000">Title here</font></a></span></h1>
希望这个答案可以帮到你。