在主题设置—》自定义CSS样式,添加下面的CSS代码:
/*统计小模块*/
.widget_Websitestat h3{font-weight:700;}.widgest-boys{overflow:hidden;}.widgest-boys .widgest-bg{margin: 4px; background-size: cover; background-repeat: no-repeat; background-position: center center; cursor: pointer; border-radius: 8px;}.widgest-boys .widgest-main{align-items: center; place-content: flex-start space-around; display: flex;}.widgest-boys .widgest-meat{display: block; margin-block-start: 1em; margin-block-end: 1em; margin-inline-start: 0px; margin-inline-end: 0px; color: rgb(255, 255, 255); font-weight: 700 !important; line-height: 1.5 !important;}.widgest-bg:not(article){transition: all 0.3s;}.widgest-bg:not(article):hover{transform: translateX(-10px);}
把上面的代码放到wp后台–>小工具–>自定义html–>需要的栏目
样式一
![图片[1]-WordPress添加滚动统计小模块-乡野博文](http://www.zau.cn/wp-content/uploads/2022/02/20220207195546.png)
代码
样式二
![图片[2]-WordPress添加滚动统计小模块-乡野博文](http://www.zau.cn/wp-content/uploads/2022/02/20220207195340.png)
代码
您阅读这篇文章共花了: 0小时00分00秒
THE END
暂无评论内容