主编:站库网
教程入手下手:
NEW图标
1:加在wp-content/themes/jizhi-chlid/diy.css底部
.icon_new {
display: block;
animation: hot 1s infinite linear;
-moz-animation: hot 1s infinite linear;
-webkit-animation: hot 1s infinite linear;
-o-animation: hot 1s infinite linear;
width: 25px;
height: 14px;
background: url(https://www.xianyl.cn/wp-content/themes/ripro-chlid/assets/new.png) no-repeat center;
position: absolute;
top: -8px;
left: 50%;
margin-left: -12.5px;
}
2:放进背景-菜单-分类称号背面
<span class="icon_new"></span>
HOT图标
1:加在wp-content/themes/jizhi-chlid/diy.css底部
.icon_hot {
display: block;
animation: hot 1s infinite linear;
-moz-animation: hot 1s infinite linear;
-webkit-animation: hot 1s infinite linear;
-o-animation: hot 1s infinite linear;
width: 25px;
height: 14px;
background: url(https://www.xiyanyl.cn/wp-content/themes/ripro-chlid/assets/hot.png) no-repeat center;
position: absolute;
top: -8px;
left: 50%;
margin-left: -12.5px;
}
2:放进背景-菜单-分类称号背面
<span class="icon_hot"></span>
如下图: