为了增加文章内容的层次感,增强用户体验,我们可以把文章正文标题、二级标题、三级标题增加不同的底色这样的wordpress美化效果以示区分。
正文标题增加底色
在Style.css查找以下内容
- /** 正文 **/
- .entry-header h1 {
- position: relative;
- font-size: 20px;
- font-size: 2.0rem;
- line-height: 30px;
- text-align: center;
- margin: 35px 0 0 0;
- padding: 5px 0;
- }
替换为
二级标题、三级标题增加底色方法
将以下代码
- /** 排版样式 **/
- .single-content h2 {
- font-size: 17px;
- font-size: 1.7rem;
- line-height: 190%;
- margin: 10px -21px;
- padding: 0 44px;
- border-left: 5px solid #e40000;
- }
- .single-content h3 {
- font-size: 16px;
- font-size: 1.6rem;
- line-height: 190%;
- margin: 2px -21px 10px -21px;
- padding: 0 44px;
- border-left: 5px solid #3690cf;
- }
替换为
增加底色可以很好的增强文章内容的层次感,增强了用户体验。
继续阅读
- 我的微信
- 这是我的微信扫一扫
- 我的微信公众号
- 我的微信公众号扫一扫
2023年1月12日 16:23 57楼
学习一下
2022年8月21日 22:10 56楼
我现在不叫穷人了,叫经济敏感型患者
2022年7月19日 22:20 55楼
我现在不叫穷人了,叫经济敏感型患者。
2022年7月11日 14:48 54楼
正好需要,学习一下
2021年12月25日 14:18 53楼
不努力是会被合并同类项的,你要做那个,被提取出来的公因式。
2021年11月15日 00:04 52楼
我不敢随便请假,我怕老板发现,有我没我都一样。
2021年9月24日 12:38 51楼
若不能听命于自己,必将受命于他人。