所以我在 Blogger 上将日期标题移到了我的帖子标题下方,而在最新的帖子中,日期一直与标题重叠。如果我使用边距或填充,它会影响其他日期标题,所以我不太确定该怎么做。博客是here .这是我认为相关的唯一代码(其中 h3 是帖子标题):
h3 {
text-align: center !important;
}
h3 a{
color: #424242;
transition: 0.5s ease;
}
h3 a:hover {
color: #58c5d2;
}
.date-header {
text-align: center !important;
float: below;
}
.date-header span {
letter-spacing: 10px !important;
}
h2 {
text-align: center !important;
}
.date-posts {
margin-top: 40px;
}
h3 {
margin-bottom: -25px !important;
}
提前感谢您的帮助!
最佳答案
将 h3
样式设置为:
margin-bottom: 0;
由于负边距,日期被拉入标题。
关于html - 日期标题重叠帖子标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30656359/