代码:
在模块 – 小工具 – 所有页面-侧边栏-顶部位置 – 增加一个【自定义HTML】
<style>
@keyframes move {
0% {
transform: translateX(0px);
}
100% {
transform: translateX(-200%);
}
}
.show-notice {
width: 100%;
overflow: hidden;
}
.show-notice-hello {
float: left;
width: 15%;
background-color: var(--theme-color);
}
.show-notice-inner {
float: left;
width: 80%;
margin-left: 2%;
overflow: hidden;
}
.show-notice-move-text {
font-size: 15px;
color: var(--main-color);
white-space: nowrap;
animation: move 10s linear infinite;
}
</style>
<div class="show-notice zib-widget">
<div class="show-notice-hello badge">您好~</div>
<div class="show-notice-inner">
<div class="show-notice-move-text"> 欢迎访问鹿泽笔记!!!</div>
</div>
</div>
👋 感谢您的观看!
© 版权声明
THE END