返回列表 发布新帖
查看: 73|回复: 0

[代码技巧] 子比主题 – 仿致美化顶部样式代码

[复制链接]
SunJu_FaceMall
社区贡献

315

主题

190

回帖

1万

积分

等级头衔
Icon组别 : 管理员
Icon等级 :

积分成就
   钻石 : 524 颗
   贡献 : 1849 点
   金币 : 12 枚
Icon在线时间 : 1297 小时
Icon注册时间 : 2024-11-22
Icon最后登录 : 2025-12-9

荣誉勋章

会员LV.1会员LV.2会员LV.3会员LV.4会员LV.5会员LV.6会员LV.7会员LV.8会员LV.9会员LV.10

风云·优秀版主

飞流名人堂成员

1

实名认证 手机认证 vip vip-year FLLTCN发表于 2025-10-9 22:48:49 | 查看全部 |阅读模式 浙江金华

资源无需等待,交易就趁现在,全面资源整合网络大咖云集,让你轻松玩转互联网!

您需要 登录 才可以下载或查看,没有账号?立即注册

×
这是一款子比主题模仿致美化顶部样式代码样式,这款样式能够更好的去让用户加入自己的群聊,还是不错的一款顶部样式美化,喜欢的自行部署吧!

image.webp

代码部署


定位:WP后台–>>外观–>>小工具–>>自定义HTML,建议放到:首页-顶部全宽度,自己改一下跳转链接
  1. <style type='text/css'>
  2.     a,abbr,acronym,address,applet,big,blockquote,body,caption,cite,code,dd,del,dfn,div,dl,dt,em,fieldset,figure,font,form,h1,h2,h3,h4,h5,h6,html,iframe,ins,kbd,label,legend,li,object,ol,p,pre,q,s,samp,small,span,strike,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,tt,ul,var {
  3.   border: 0;
  4.   font-size: 100%;
  5.   font-style: inherit;
  6.   font-weight: inherit;
  7.   margin: 0;
  8.   outline: 0;
  9.   padding: 0;
  10.   vertical-align: baseline;
  11.   box-sizing: border-box;
  12. }

  13. .index-header {
  14.   width: 100%;
  15.   height: 624px;
  16.   margin-top: -75px;
  17.   background-image: url(https://dl.zhutix.net/2020/05/header-bg.svg);
  18.   background-size: auto 622px;
  19.   background-position: 50% 0;
  20.   position: relative;
  21.   background-repeat: no-repeat;
  22.   overflow: hidden
  23. }

  24. .ind_content-wrapper {
  25.   position: relative;
  26.   width: 1200px;
  27.   margin: auto
  28. }

  29. .ind_content {
  30.   display: -ms-flexbox;
  31.   display: flex;
  32.   padding-top: 200px;
  33.   -ms-flex-direction: column;
  34.   flex-direction: column;
  35.   -ms-flex-align: center;
  36.   align-items: center;
  37.   width: 1200px;
  38.   height: 620px;
  39.   margin: 0 auto;
  40.   position: relative;
  41.   z-index: 1;
  42.   background-image: url(https://dl.zhutix.net/2020/05/06.png);
  43.   background-size: cover
  44. }

  45. .ind_content .common-button {
  46.   margin-top: 60px
  47. }

  48. .ind_title {
  49.   font-size: 40px;
  50.   color: #666
  51. }
  52. .ind_title .cai {
  53.     width: 14em;
  54.     height: 1em;
  55. }
  56. .ind_subtitle {
  57.   width: 727px;
  58.   text-align: center;
  59.   margin-top: 43px;
  60.   font-size: 22px;
  61.   color: #8A8A8A
  62. }

  63. .index-en-header .ind_subtitle {
  64.   width: 537px
  65. }

  66. .ind_quan {
  67.   position: absolute;
  68.   background-size: cover;
  69.   z-index: 0
  70. }

  71. .ind_quan0 {
  72.   left: 113px;
  73.   top: 125px;
  74.   width: 60px;
  75.   height: 60px;
  76.   background-image: url(https://dl.zhutix.net/2020/05/toy5.svg);
  77.   -webkit-animation: toy 3s infinite;
  78.   animation: toy 3s infinite
  79. }

  80. .ind_quan1 {
  81.   left: -158px;
  82.   top: 415px;
  83.   width: 32px;
  84.   height: 32px;
  85.   background-image: url(https://dl.zhutix.net/2020/05/toy1.svg);
  86.   -webkit-animation: toy 3s infinite;
  87.   animation: toy 3s infinite
  88. }

  89. .ind_quan2 {
  90.   left: -55px;
  91.   top: 296px;
  92.   width: 29px;
  93.   height: 29px;
  94.   -webkit-animation: upAnimation 3s infinite;
  95.   animation: upAnimation 3s infinite;
  96.   background-image: url(https://dl.zhutix.net/2020/05/toy2.svg)
  97. }

  98. .ind_quan3 {
  99.   left: 465px;
  100.   top: 129px;
  101.   width: 49px;
  102.   width: 49px;
  103.   height: 49px;
  104.   -webkit-animation: zhuan 3s .2s infinite;
  105.   animation: zhuan 3s .2s infinite;
  106.   background-image: url(https://dl.zhutix.net/2020/05/toy3.svg)
  107. }

  108. .ind_quan4 {
  109.   right: 400px;
  110.   top: 330px;
  111.   width: 24px;
  112.   height: 24px;
  113.   -webkit-animation: toy 3s 1s infinite;
  114.   animation: toy 3s 1s infinite;
  115.   background-image: url(https://dl.zhutix.net/2020/05/toy4.svg)
  116. }

  117. .ind_quan5 {
  118.   left: 830px;
  119.   top: 74px;
  120.   width: 54px;
  121.   height: 54px;
  122.   -webkit-animation: toy 3s .8s infinite;
  123.   animation: toy 3s .8s infinite;
  124.   background-image: url(https://dl.zhutix.net/2020/05/xin.svg)
  125. }

  126. .ind_quan6 {
  127.   left: 961px;
  128.   top: 261px;
  129.   width: 27px;
  130.   -webkit-animation: zhuan .5s .2s infinite;
  131.   animation: zhuan .5s .2s infinite;
  132.   height: 23px;
  133.   background-image: url(https://dl.zhutix.net/2020/05/toy6.svg)
  134. }

  135. .ind_quan7 {
  136.   left: 1271px;
  137.   top: 373px;
  138.   width: 40px;
  139.   height: 40px;
  140.   -webkit-animation: zhuan 2s 1.5s infinite;
  141.   animation: zhuan 2s 1.5s infinite;
  142.   background-image: url(https://dl.zhutix.net/2020/05/toy7.svg)
  143. }

  144. .ind_quan8 {
  145.   width: 83px;
  146.   height: 84px;
  147.   left: 228px;
  148.   top: 623px;
  149.   -webkit-animation: toy2 3s .1s infinite;
  150.   animation: toy2 3s .1s infinite;
  151.   background-image: url(https://dl.zhutix.net/2020/05/toy2.svg)
  152. }

  153. .ind_quan9 {
  154.   width: 30px;
  155.   height: 30px;
  156.   right: -30px;
  157.   top: 122px;
  158.   -webkit-animation: aroundAnimation 3s .1s infinite;
  159.   animation: aroundAnimation 3s .1s infinite;
  160.   background-image: url(https://dl.zhutix.net/2020/05/toy2.svg)
  161. }

  162. .i_zhuan {
  163.   -webkit-animation: zhuan 1s 1.5s infinite;
  164.   animation: zhuan 1s 1.5s infinite;
  165. }

  166. .i_suo {
  167.   -webkit-animation: toy2 3s .1s infinite;
  168.   animation: toy2 3s .1s infinite;
  169. }

  170. @-webkit-keyframes toy {
  171.   0% {
  172.     -webkit-transform: scale(1);
  173.     transform: scale(1)
  174.   }

  175.   50% {
  176.     -webkit-transform: scale(.7);
  177.     transform: scale(.7)
  178.   }

  179.   to {
  180.     -webkit-transform: scale(1);
  181.     transform: scale(1)
  182.   }
  183. }

  184. @keyframes toy {
  185.   0% {
  186.     -webkit-transform: scale(1);
  187.     transform: scale(1)
  188.   }

  189.   50% {
  190.     -webkit-transform: scale(.7);
  191.     transform: scale(.7)
  192.   }

  193.   to {
  194.     -webkit-transform: scale(1);
  195.     transform: scale(1)
  196.   }
  197. }

  198. @-webkit-keyframes toy2 {
  199.   0% {
  200.     -webkit-transform: scale(.7);
  201.     transform: scale(.7)
  202.   }

  203.   50% {
  204.     -webkit-transform: scale(1);
  205.     transform: scale(1)
  206.   }

  207.   to {
  208.     -webkit-transform: scale(.7);
  209.     transform: scale(.7)
  210.   }
  211. }

  212. @keyframes toy2 {
  213.   0% {
  214.     -webkit-transform: scale(.7);
  215.     transform: scale(.7)
  216.   }

  217.   50% {
  218.     -webkit-transform: scale(1);
  219.     transform: scale(1)
  220.   }

  221.   to {
  222.     -webkit-transform: scale(.7);
  223.     transform: scale(.7)
  224.   }
  225. }
  226. /*转圈*/
  227. @keyframes zhuan {
  228.   0% {
  229.     -webkit-transform: rotate(0deg);
  230.   }

  231.   25% {
  232.     -webkit-transform: rotate(90deg);
  233.   }

  234.   50% {
  235.     -webkit-transform: rotate(180deg);
  236.   }

  237.   75% {
  238.     -webkit-transform: rotate(270deg);
  239.   }

  240.   100% {
  241.     -webkit-transform: rotate(360deg);
  242.   }
  243. }
  244. /*上下晃动*/
  245. @keyframes upAnimation {
  246.   0%,
  247.   100%,
  248.   20%,
  249.   50%,
  250.   80% {
  251.     transition-timing-function: cubic-bezier(0.215,.61,.355,1);
  252.     transform: translate3d(0,0,0);
  253.   }

  254.   40%,
  255.   43% {
  256.     transition-timing-function: cubic-bezier(0.755,0.50,0.855,0.060);
  257.     transform: translate3d(0,-30px,0);
  258.   }

  259.   70% {
  260.     transition-timing-function: cubic-bezier(0.755,0.050,0.855,0.060);
  261.     transform: translate3d(0,-15px,0);
  262.   }

  263.   90% {
  264.     transform: translate3d(0,-4px,0);
  265.   }
  266. }
  267. /*左右晃动*/
  268. @keyframes aroundAnimation {
  269.   0%,
  270.   100%,
  271.   20%,
  272.   50%,
  273.   80% {
  274.     transition-timing-function: cubic-bezier(0.215,.61,.355,1);
  275.     transform: translate3d(0,0,0);
  276.   }

  277.   40%,
  278.   43% {
  279.     transition-timing-function: cubic-bezier(0.755,0.50,0.855,0.060);
  280.     transform: translate3d(-20px,0,0);
  281.   }

  282.   70% {
  283.     transition-timing-function: cubic-bezier(0.755,0.050,0.855,0.060);
  284.     transform: translate3d(-10px,0px,0);
  285.   }

  286.   90% {
  287.     transform: translate3d(20px,0,0);
  288.   }
  289. }

  290. .common-button {
  291.   box-shadow: 0 4px 8px 0 rgba(110, 192, 245, .5);
  292.   border-radius: 25px;
  293.   background: #6ec0f5;
  294.   border: 1px solid #67baf0;
  295.   font-size: 16px;
  296.   padding: 8px 22px;
  297.   transition: all .2s;
  298.   color: #fff;
  299.     text-decoration: none;
  300. }

  301. .common-button:hover {
  302.     color: #fff;
  303.   box-shadow: 0 4px 8px 0 rgba(110, 192, 245, 1);
  304. }


  305. @media screen and (max-width: 768px) {
  306.   .ind_content-wrapper {
  307.     width: 100%;
  308.   }

  309.   .ind_content {
  310.     padding-top: 100px;
  311.     width: 100%;
  312.     height: auto;
  313.     margin: 0 auto;
  314.     background-image: none;
  315.   }

  316.   .ind_title {
  317.     font-size: x-large;
  318.   }

  319.   .plus-toy, .remlm, .grid_author_avt, .ind_quan {
  320.     display: none !important;
  321.   }

  322.   .ind_content .common-button {
  323.     margin-top: 30px;
  324.   }

  325.   .common-button {
  326.     font-size: large;
  327.   }

  328.   .index-header {
  329.     width: 100%;
  330.     height: 300px;
  331.     margin-top: -75px;
  332.     background-image: url(https://dl.zhutix.net/2020/05/header-bg.svg);
  333.     background-size: auto 378px;
  334.   }
  335. }
  336. </style>
  337. <div class="index-header"><div class="ind_content-wrapper"><div class="ind_content"><h1 class="ind_title shuheiti">精彩的人生就是无休止地折腾</h1><div class="ind_subtitle jxda"># 好在精选 乐在分享 #</div><a class="common-button button" href="/qun/" target="_blank">加入大佬QQ群</a></div><div class="ind_quan0 ind_quan"></div><div class="ind_quan1 ind_quan"></div><div class="ind_quan2 ind_quan"></div><div class="ind_quan3 ind_quan"></div><div class="ind_quan4 ind_quan"></div><div class="ind_quan5 ind_quan"></div><div class="ind_quan6 ind_quan"></div><div class="ind_quan7 ind_quan"></div><div class="ind_quan8 ind_quan"></div><div class="ind_quan9 ind_quan"></div></div></div>
复制代码


本帖被以下淘专辑推荐:

路虽远,行则将至;事虽难,做则必成。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

飞流广播+ 发布

系统消息:柒沐已经连续答对3道难题,逆天学霸谁与争锋?!#每日答题#
10-30 17:02
系统消息:柒沐已经连续答对10道难题,逆天学霸谁与争锋?!#每日答题#
10-09 09:07
系统消息:柒沐已经连续答对3道难题,逆天学霸谁与争锋?!#每日答题#
09-24 09:00
系统消息:柒沐已经连续答对3道难题,逆天学霸谁与争锋?!#每日答题#
09-11 11:40
系统消息:柒沐已经连续答对3道难题,逆天学霸谁与争锋?!#每日答题#
09-02 09:17
系统消息:柒沐已经连续答对3道难题,逆天学霸谁与争锋?!#每日答题#
08-27 08:56
系统消息:柒沐已经连续答对3道难题,逆天学霸谁与争锋?!#每日答题#
08-20 15:12
系统消息:柒沐已经连续答对3道难题,逆天学霸谁与争锋?!#每日答题#
08-03 10:22
系统消息:柒沐已经连续答对10道难题,逆天学霸谁与争锋?!#每日答题#
06-30 08:57
系统消息:柒沐已经连续答对3道难题,逆天学霸谁与争锋?!#每日答题#
06-18 09:14
系统消息:清风网络已经连续答对10道难题,逆天学霸谁与争锋?!#每日答题#
04-11 09:40
系统消息:清风网络已经连续答对3道难题,逆天学霸谁与争锋?!#每日答题#
04-10 09:31
系统消息:IXM77777已经连续答对3道难题,逆天学霸谁与争锋?!#每日答题#
04-09 13:44
系统消息:清风网络已经连续答对3道难题,逆天学霸谁与争锋?!#每日答题#
04-09 09:22
系统消息:柒沐已经连续答对10道难题,逆天学霸谁与争锋?!#每日答题#
04-09 08:52
系统消息:清风网络已经连续答对3道难题,逆天学霸谁与争锋?!#每日答题#
04-08 09:24
系统消息:柒沐已经连续答对3道难题,逆天学霸谁与争锋?!#每日答题#
04-07 09:02
系统消息:柒沐已经连续答对10道难题,逆天学霸谁与争锋?!#每日答题#
02-27 09:35
系统消息:柒沐已经连续答对3道难题,逆天学霸谁与争锋?!#每日答题#
02-26 09:06
系统消息:柒沐已经连续答对3道难题,逆天学霸谁与争锋?!#每日答题#
02-25 08:49
站内通告

提供资源交易、信息共享、靓号交流、技术变现、学习问答、兴趣娱乐等全面服务。

1.丰富功能系统,扩展社区特色玩法,打造最好的互联网聚集圈子。

2.准确信息真实交易,安全快捷又方便,让虚拟交易面对面。

3. 天上不会掉馅饼,话术骗术迷人心,切勿脱离平台线下交易,被骗与平台无关!

4. 欺诈骗钱,违规违法将视情受到警告&禁言&封号甚至检举至👮🏻‍♀️处理!

官方Q群:123129钉推群:BAYR2383 站长QQ:3220000000

投诉/建议/商务合作联系

fl@fllt.cn

严禁私下交易,被骗与本站无关。
违反交易细则,取证立查严惩。
  • 钉钉新帖推送群
  • 官方交流QQ群
  • 站长唯一微信号

👮曝光Ta|🧿小黑屋|📴手机页|飞流网 ( 渝ICP备2025054677号-1|电信增值许可 渝B2-20250789 )|网站地图

GMT+8, 2025-12-10 12:52 , Processed in 0.102630 second(s), 61 queries, MemCached On , Gzip On.

Based on XJ-TX X3.5 Licensed

飞流论坛 HanAnalytics icp Astro vhAstro-Theme

关灯 在本版发帖
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表