[7b2美化]柒比贰 魔改系列|7B2-分类封面添加波浪效果&每日诗词

本文转载自:钻芒博客

https://www.zmki.cn/5105.html

效果如图:

[7b2美化]柒比贰 魔改系列|7B2-分类封面添加波浪效果&每日诗词_第1张图片

代码:

首先在style.css样式表里添加波浪样式

/*浪来了*/
.lang {
	overflow: hidden;
	width: 100%; position: absolute; left: 0; margin-top: -55px; } .lang__1 { background: url(https://dl.zhutix.net/2019/08/wave_01.png) repeat-x; width: 7000px; height: 60px; animation: langs 18s infinite cubic-bezier(0.04, 1.07, 0.65, 0.05); position: absolute; top: 8px; } .lang__2 { background: url(https://dl.zhutix.net/2019/08/wave_02.png) repeat-x; width: 7000px; height: 60px; animation: langs 12s infinite linear; position: relative; top: 0; } .lang__3 { background: url(https://dl.zhutix.net/2019/08/wave_03.png) repeat-x; width: 7000px; height: 60px; animation: langs 18s infinite linear; position: absolute; top: 0; } .lang__4 { background: url(https://dl.zhutix.net/2019/08/wave_04.png) repeat-x; width: 7000px; height: 60px; animation: langs 12s infinite linear; position: relative; top: 0; } .lang__5 { background: url(https://dl.zhutix.net/2019/08/wave_05.png) repeat-x; width: 7000px; height: 60px; animation: langs 18s infinite linear; position: absolute; top: 0; } .lang__6 { background: url(https://dl.zhutix.net/2019/08/wave_06.png) repeat-x; width: 7000px; height: 60px; animation: langs 12s infinite linear; position: relative; top: 0; } .author .lang { margin-top: -132px; } .footer .lang { margin-top: -55px; } @keyframes langs { 0% { margin-left: 0; } 100% { margin-left: -1938px; } } @-webkit-keyframes langs { 0% { margin-left: 0; } 100% { margin-left: -1938px; } } /*浪完了*/

 


首先是默认的没有类描述,新增换行每日诗词。(这个很好理解吧)如下图

[7b2美化]柒比贰 魔改系列|7B2-分类封面添加波浪效果&每日诗词_第2张图片

以下几处代码均在主题根目录下的/category.php 文件内修改。

  这一段换成下边的代码即可

class="cat-title pos-a lm">

class="mar10-b shadow"><?php echo get_the_archive_title('',false); ?></h1>

class="shadow"><?php echo $des ? $des : __('还没有描述...> ="jinrishici-sentence">正在加载今日诗词....</span>

你可能感兴趣的:([7b2美化]柒比贰 魔改系列|7B2-分类封面添加波浪效果&每日诗词)