牛马论坛查看原帖 →

分享一段CSS样式代码

七夏 393 阅读 5 回复
代码来自discuz X5.0 模板中
[attach]897[/attach]
[code]/*自行行替换 portal-container 使用*/
.portal-container::before {
content:'';
position:absolute;
top:0;
left:0;
z-index: 9999999;
right:0;
height:20px;
background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2400 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='waveGrad' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' style='stop-color:%231E90FF'/%3E%3Cstop offset='50%25' style='stop-color:%2300CED1'/%3E%3Cstop offset='100%25' style='stop-color:%231E90FF'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,50 C200,20 400,80 600,50 C800,20 1000,80 1200,50 C1400,20 1600,80 1800,50 C2000,20 2200,80 2400,50 L2400,0 L0,0 Z' fill='url(%23waveGrad)'/%3E%3C/svg%3E") repeat-x;
background-size:600px 20px;
animation:wave-flow 10s linear infinite;
}
@keyframes wave-flow {
0% {
background-position-x:0;
}
100% {
background-position-x:600px;
}
}[/code]

这代码看着像是给论坛附件样式写的吧?能具体说下是用来美化什么效果的吗?我正好在找类似的样式参考。
[这只是一个小尾巴]
这是用来美化什么位置的呢?小白需要稍微详细的玩法攻略,不说我就让派出所的来用枪打你
[quote][size=2][url=forum.php?mod=redirect&goto=findpost&pid=5226&ptid=1491][color=#999999]十佳老中医 发表于 2026-8-12 20:23[/color][/url][/size]
这是用来美化什么位置的呢?小白需要稍微详细的玩法攻略,不说我就让派出所的来用枪打你 ...[/quote]

看你需要,美化哪里也行。赏你一个猪头🐷
还没升级到X5.0啊。
[quote][color=#999999]solife 发表于 2026-8-22 07:28[/color]
[color=#999999]还没升级到X5.0啊。[/color][/quote]

没有呢😂

阅读全文与全部回复 →