HTML:更改 Blogger 帖子标题的字体大小

标签 html css blogger

我为我的博主尝试了一个新主题 ( http://alstat.blogspot.com/ )。一切都很好,除了帖子标题。当我在我的博客主页上时,我得到了这个大文本文章标题,但是当我点击我的一篇文章时,文章标题字体改变并且它的大小变成了。该主题实际上可在此处获得 ( http://btemplates.com/2010/blogger-template-heliumified/ )。我玩弄了 css 代码,并尝试编辑以下内容。我尝试将 .post h3 a,.post h3 a:visited,.post h3 strong 更改为 .post h2 a,.post h2 a:visited,.post h2 strong >,还有这个 .post h3 a,.post h3 a:visited,.post h3 strong。什么都没发生, 而其他几行代码我也试着修改了一下,看看有没有变化。我玩过的 HTML 文件的 post 部分的代码部分如下所示。如果你们中的任何人可以帮助我,我真的很感激。顺便说一句,我是 HTML 的初学者。谢谢!

.post {
margin:0 0 25px;
}

.post h3 a,.post h3 a:visited,.post h3 strong {
display:block;
color:#333333;
font-family:Cuprum, arial, serif;
font-size:30px;
line-height:1.3;
text-decoration:none;
}

.post h3 strong,.post h3 a:hover {
color:#333333;
}

最佳答案

在你的Home Page您的帖子标题位于字体大小为“a”的标签中:30 而在您的详细信息页面中,标题不在“a”标签中。

此外,您的 css 标题类(即后标题和条目标题)未定义,或者您没有正确链接这些文件。

解决方案:

  • 尝试链接文件。如果存在的话。
  • 或提供一个新的 css 类,其属性为 font-size:30

关于HTML:更改 Blogger 帖子标题的字体大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14003699/

相关文章:

html - 保持灯箱缩略图始终在 div 中均匀分布

css - Sass @each 有多个变量

css - 显示无 "Who to follow"推特

html - 输入字段内的右上角三 Angular 形

css - 可以更改默认的 Blogger shareButtons 图标吗?

html - 更改没有 body.background 的自定义博主模板中的背景

javascript - 如何为 Blogger 添加国际化支持?

java - 如何从 Hoover 菜单 Selenium JAVA 打开 WebElement

jquery - 单击选择字段时 div 消失

javascript - 将 Unix 时间戳转换为工作日