给博客优化一下标题css

2020-10-05T10:23:00

标题1

标题2

标题3

标题4

标题5

如果喜欢,可以尝试修改替换一下我的css。.article-content自行替换成你的文章页的DIV

.article-content h1 {
    margin: 20px 0;
    margin: 12px 0px;
    padding: 5px 12px;
    border-bottom: 0px solid red;
    border-left: 5px solid red;
    border-radius: 0rem;
    background-color: #f6f6f6;
    font-weight: bold;
    font-size: 23px;
}

.article-content h2 {
    margin: 20px 0;
    margin: 12px 0px;
    padding: 5px 12px;
    border-bottom: 0px solid #FF1493;
    border-left: 5px solid #FF1493;
    border-radius: 0rem;
    background-color: #f6f6f6;
    font-weight: bold;
    font-size: 21px;
}

.article-content h3 {
    margin: 20px 0;
    margin: 12px 0px;
    padding: 5px 12px;
    border-bottom: 0px solid #4169E1;
    border-left: 5px solid #4169E1;
    border-radius: 0rem;
    background-color: #f6f6f6;
    font-weight: bold;
    font-size: 18px;
}

.article-content h4 {
    margin: 20px 0;
    margin: 12px 0px;
    padding: 5px 12px;
    border-bottom: 0px solid #3CB371;
    border-left: 5px solid #3CB371;
    border-radius: 0rem;
    background-color: #f6f6f6;
    font-weight: bold;
    font-size: 16px;
}

.article-content h5 {
    margin: 20px 0;
    margin: 12px 0px;
    padding: 5px 12px;
    border-bottom: 0px solid #FFC0CB;
    border-left: 5px solid #FFC0CB;
    border-radius: 0rem;
    background-color: #f6f6f6;
    font-weight: bold;
    font-size: 15px;
}
当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »