前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >WordPress文章标题美化

WordPress文章标题美化

作者头像
行云博客
发布于 2022-05-11 07:57:42
发布于 2022-05-11 07:57:42
64000
代码可运行
举报
文章被收录于专栏:行云博客行云博客
运行总次数:0
代码可运行

文章目录[隐藏]

实现代码:

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
.article-content h1 ,
.article-content h2 ,
.article-content h3 ,
.article-content h4 ,
.article-content h5
.article-content h1 {
    font-weight : bold ;
    background-color : #f6f6f6 ;
    margin : 20px 0 ;
    border-bottom : 0px solid red ;
    padding : 5px 12px ;
    border-left : 5px solid red ;
    margin : 12px 0px ;
    border-radius : 0rem ; /*块圆角值*/
}

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

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

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

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

具体调整的CSS还得根据你的主题的class决定


行云博客 - 免责申明 本站提供的一切软件、教程和内容信息仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。如果您喜欢该程序,请支持正版,购买注册,得到更好的正版服务。如有侵权请邮件与我联系处理。敬请谅解!

本文链接:https://www.xy586.top/10637.html

转载请注明文章来源:行云博客 » WordPress文章标题美化

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2000-05-11,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
本文部分代码块支持一键运行,欢迎体验
本文部分代码块支持一键运行,欢迎体验