- 资源介绍
白蓝玉 颜色 + 炫酷黑 颜色
本教程需要您认真阅读,以免不会设置等
教程开始:
下载 navbar.php 右边下载模块代码
打开 ripro主题路径
搜索 navbar.php
将下载好的navbar.php 文件全部替换
搜索diy.css
添加以下代码
//白色diy.css /*.header__group_cats .header__cat{padding:20px 31px 20px 19px} .header__group_cats .header__cat:after{content:'';position:absolute;top:50%;right:0;width:1px;height:38px;margin-top:-19px;background:#424242}*/ @media only screen and (max-width: 767px) { .header__group_cats .header__cat { display: none } } .header__group_cats .header__dropdown { border-top-right-radius: 8px; width: 262px } @media only screen and (max-width: 767px) { .header__group_cats .header__dropdown { top: 0; left: auto; right: 0; bottom: 0; width: 256px; overflow: auto } } .header__style_user .header__dropdown { left: inherit; right: -80px; border-radius: 8px; width: 400px; } .header__group_user .header__dropdown .header__link > a { color: #8495a0 } .header__group_user .header__dropdown .header__link > a:hover { color: #fff } .header__group_user.active:before { content: none } .header__group_notify { } .header__group_notify .header__dropdown { border-radius: 8px; left: auto; right: -64px; width: 372px } .header__group.active .header__cat { background: #fff; box-shadow: 0 5px 0 0 #fff } .header__cat a { color: #fff; } .header__cat a:hover { color: #fff; } .header__cat .dian { background: #ff5780; width: 7px; height: 7px; border-radius: 50%; position: absolute; right: 13px; top: 26px; } .header__group.active .header__cat:after { display: none } .header__group.active .header__title { color: #fff } .header__group.active .header__dropdown { display: block } .header__group_cart.active:before, .header__group_cart.active:after { content: none !important } .header__group_cart.active .header__cat { background: none; box-shadow: none } .header__group_shift .header__dropdown { border-top-right-radius: 8px; left: 0; right: auto; width: 664px } .header__group_shift.active::before { content: none } .header__group_shift .cards { margin: 0; padding: 20px; display: -ms-grid; display: grid; -ms-grid-columns:(302px) [2]; grid-template-columns: repeat(2, 302px); grid-gap: 20px } .header__group_shift .cards .card { width: 302px } .header__group_shift .cards .card.liked .likes { opacity: 1; right: 10px; transition-delay: 0ms, 0ms } .header__group_shift .cards .card.liked .likes a { color: #fb6666 } .header__group_shift .cards .card.liked .likes svg { animation: bounce 250ms ease } .header__group_shift .cards .card-wrapper { margin: 0 } @media only screen and (max-width: 767px) { .header__group_user.active .header__cat { background: none; box-shadow: none } } @media only screen and (max-width: 767px) { .header__group_user.active .header__dropdown { display: none } } .header__dropdown { display: none; position: absolute; top: calc(100% + 0px); left: 0; background: #fff; border-radius: 0 0 8px 8px; } .header-box { color: #8495a0; } .header-box, .header__new { margin: 0 20px; padding: 15px 0; } .refresh-header-top { width: 100%; } .header-box { color: #8495a0; } .btn-cta-purple { position: relative; width: 75px; height: 28px; padding: 0 8px; text-align: center; text-transform: uppercase; font-size: 10px; font-weight: 800; line-height: 28px; border-radius: 14px; color: #fff; background-color: none; background-image: linear-gradient(to bottom, #fb68d5 0, #7865ff 100%); margin-right: 20px; cursor: pointer } .btn-cta-purple:hover { background-image: linear-gradient(to bottom, #ae68fb, #6652f3) } .header__new { border-bottom: 1px solid #202020; box-shadow: 0 1px 0 0 #353535; font-size: 14px; color: #fff } .header-box, .header__new { margin: 0 20px; padding: 15px 0 } .header-box { color: #fff } .refresh-header-top { width: 100%; } .header-top { position: relative; padding-bottom: 10px; font-size: 9pt; color: #fff; border-bottom: 1px solid #34495e; box-shadow: 0 1px 0 0 #34495e } .header-top img { float: left; width: 45px; border-radius: 50%; margin-top: 2px; margin-right: 10px } .header-top .zuanshi { background: url(../img/header/zuanshi.svg) no-repeat center; width: 15px; height: 15px; display: -webkit-inline-box; background-size: contain; position: relative; top: 3px; cursor: pointer; margin-left: 5px } .header-top .zuanshi.is-vip { background: url(../img/header/zuanshi_vip.svg) no-repeat center; background-size: contain; } .header-top .fa-user-crown { color: #f3d60c; margin-left: 5px; font-size: 14px; cursor: pointer; margin-top: 3px; } .header-top .fa-user-crown.is-vip { color: #ff5780; } .header-top .logout { position: absolute; right: 0; top: 0; color: #8495a0; } .header-top .logout:hover { color: #fff; } .user-names { max-width: 100px; overflow: hidden; display: block; word-wrap: break-word; text-overflow: ellipsis; white-space: nowrap; float: left; font-size: 14px; } .header-top .group-name { background: linear-gradient(90deg, #5850ee, #0674ec); padding: 2px 8px; border-radius: 10px; font-size: 12px; margin-left: 10px } .header-top .group-name.vip-bg, .page-profile .inset-header .about-me .user-name small.badge.vip-bg { background: #ff5780; } .header-top .group-name.authors-bg, .page-profile .inset-header .about-me .user-name small.badge.authors-bg { background: #2aa461; } .header-top p { margin-top: 10px; font-size: 12px; color: #8495a0; cursor: pointer; } .header-center { display: flex; padding: 15px 0 } .header-bottom, .header-center { position: relative } .header-center .md-l { float: left; width: 40%; border-radius: 6px; padding: 10px; margin-right: 15px; background-clip: padding-box, border-box; background-origin: padding-box, border-box; background-image: linear-gradient(135deg, #5850ee, #5850ee), linear-gradient(-180deg, #5850ee 2%, #5850ee 98%); border: 2px transparent solid; } .header-center .md-l:hover { background-image: linear-gradient(135deg, #5850ee, #5850ee), linear-gradient(-180deg, #5850ee 2%, #5850ee 98%); } .header-center .md-tit { display: block; color: #fff; font-size: 14px; margin-bottom: 10px } .header-center .dou, .header-center .jinbi { display: block } .header-center .jinbi i { background: url(https://tp.riyuanma.com/svg/jinbi.svg) no-repeat center; background-size: cover; } .header-center .dou i, .header-center .jinbi i { width: 16px; height: 16px; display: -webkit-inline-box; position: relative; top: 4px; margin-right: 5px } .header-center .dou i { background: url(https://tp.riyuanma.com/svg/dou.svg) no-repeat center; background-size: cover; } .header-center .pay-credit { position: absolute; bottom: 25px; background: linear-gradient(-180deg, #399dff 2%, #297dcf 98%); padding: 1px 10px; border-radius: 20px } .header-center .pay-credit:hover { background: #399dff; color: #fff; } .header-center .md-r { float: left; width: 50% } .header-center .md-t { padding: 9px; margin-bottom: 5px; border-radius: 5px; position: relative; background-clip: padding-box, border-box; background-origin: padding-box, border-box; background-image: linear-gradient(135deg, #5850ee, #5850ee), linear-gradient(-180deg, #5850ee 2%, #5850ee 98%); border: 2px transparent solid; } .header-center .md-t:hover { background-image: linear-gradient(135deg, #5850ee, #5850ee), linear-gradient(-180deg, #5850ee 2%, #5850ee 98%); color: #fff; } .header-center .md-t span { color: #fff; display: block; margin-bottom: 5px; font-size: 14px } .header-center .md-t p { font-size: 11px } .header-center .md-t a { position: absolute; right: 10px; top: 5px; background: linear-gradient(-180deg, #3fc67c 2%, #2aa461 98%); padding: 1px 10px; border-radius: 20px } .header-center .md-t a:hover { background: #2aa461; color: #fff; } .header-center .md-b { padding: 9px; position: relative; border-radius: 6px; background-clip: padding-box, border-box; background-origin: padding-box, border-box; background-image: linear-gradient(135deg, #5850ee, #5850ee), linear-gradient(-180deg, #5850ee 2%, #5850ee 98%); border: 2px transparent solid; } .header-center .md-b:hover { background-image: linear-gradient(135deg, #5850ee, #5850ee), linear-gradient(-180deg, #5850ee 2%, #5850ee 98%); color: #fff; } .header-center .md-b span { color: #fff; padding-bottom: 5px; display: block; font-size: 14px } .header-center .md-b p { font-size: 11px } .header-center .md-b a { position: absolute; right: 10px; top: 5px; background: linear-gradient(to bottom, #fb68d5 0, #7865ff 100%); padding: 1px 10px; border-radius: 20px } .header-center .md-b a:hover { background-image: linear-gradient(to bottom, #ae68fb, #6652f3); } .header-bottom .my-home { display: block; font-size: 14px; margin-bottom: 10px; } .header-bottom ul { padding: 1px; display: flex; text-align: center; margin: auto; } .header-bottom li { float: left; width: 20%; cursor: pointer; } .header-bottom li i { background-color: #fff; width: 40px; height: 40px; display: block; border-radius: 50%; margin: 0 auto; margin-bottom: 5px; background-size: 50%; background-position: center; background-repeat: no-repeat } .header-bottom li i:hover { background-color: #242424; } .header-bottom li i.ico_1 { background-image: url(https://tp.riyuanma.com/svg/shoucang.svg) } .header-bottom li i.ico_2 { background-image: url(https://tp.riyuanma.com/svg/xiangmu.svg) } .header-bottom li i.ico_3 { background-image: url(https://tp.riyuanma.com/svg/anquan.svg) } .header-bottom li i.ico_4 { background-image: url(https://tp.riyuanma.com/svg/dingdan.svg) } .header-bottom li i.ico_5 { background-image: url(https://tp.riyuanma.com/svg/xiazai.svg) } .header__custom .icon.max { font-size: 18px; } .header-top p { margin-top: 10px; font-size: 12px; color: #8495a0; cursor: pointer; } .header-dropdown { font-size: 12px; } .header-center p { margin: auto; } .header-top p { margin: auto; } .header__cat { box-sizing: border-box; display: -webkit-box; display: -ms-flexbox; display: flex; /* height: 68px; */ padding-left: 10px; border-radius: 8px 8px 0 0; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; cursor: pointer; padding-top: 0; } .wp-yooxi, .wp-mianfei1 { font-size: 26px; position: absolute; top: 10px; left: 10px; z-index: 20; text-align: center; color: #ffc107; } .entry-footer a { line-height: inherit !important; } .posts-wrapper .wp { font-size: 20px !important; } .wp-VIP { margin-left: 10px; color: #e8b10a; font-size: 14px !important ; } // 黑色diy.css /*.header__group_cats .header__cat{padding:20px 31px 20px 19px} .header__group_cats .header__cat:after{content:'';position:absolute;top:50%;right:0;width:1px;height:38px;margin-top:-19px;background:#424242}*/ @media only screen and (max-width: 767px){.header__group_cats .header__cat{display:none} } .header__group_cats .header__dropdown{border-top-right-radius:8px;width:262px} @media only screen and (max-width: 767px){.header__group_cats .header__dropdown{top:0;left:auto;right:0;bottom:0;width:256px;overflow:auto} } .header__style_user .header__dropdown { left: inherit; right: -80px; border-radius: 8px; width: 400px; } .header__group_user .header__dropdown .header__link > a{color:#8495a0} .header__group_user .header__dropdown .header__link > a:hover{color:#fff} .header__group_user.active:before{content:none} .header__group_notify{} .header__group_notify .header__dropdown{border-radius:8px;left:auto;right:-64px;width:372px} .header__group.active .header__cat{background:#2c2c2c;box-shadow:0 5px 0 0 #2c2c2c} .header__cat a{color: #adb7be;} .header__cat a:hover{color: #fff;} .header__cat .dian{background: #ff5780;width: 7px;height: 7px;border-radius: 50%;position: absolute;right: 13px;top: 26px;} .header__group.active .header__cat:after{display:none} .header__group.active .header__title{color:#fff} .header__group.active .header__dropdown{display:block} .header__group_cart.active:before,.header__group_cart.active:after{content:none !important} .header__group_cart.active .header__cat{background:none;box-shadow:none} .header__group_shift .header__dropdown { border-top-right-radius: 8px; left: 0; right: auto; width: 664px } .header__group_shift.active::before { content: none } .header__group_shift .cards { margin: 0; padding: 20px; display: -ms-grid; display: grid; -ms-grid-columns:(302px)[2]; grid-template-columns: repeat(2, 302px); grid-gap: 20px } .header__group_shift .cards .card { width: 302px } .header__group_shift .cards .card.liked .likes { opacity: 1; right: 10px; transition-delay: 0ms, 0ms } .header__group_shift .cards .card.liked .likes a { color: #fb6666 } .header__group_shift .cards .card.liked .likes svg { animation: bounce 250ms ease } .header__group_shift .cards .card-wrapper { margin: 0 } @media only screen and (max-width: 767px){.header__group_user.active .header__cat{background:none;box-shadow:none} } @media only screen and (max-width: 767px){.header__group_user.active .header__dropdown{display:none} } .header__dropdown { display: none; position: absolute; top: calc(100% + 0px); left: 0; background: #2c2c2c; border-radius: 0 0 8px 8px; } .header-box { color: #8495a0; } .header-box, .header__new { margin: 0 20px; padding: 15px 0; } .refresh-header-top { width: 100%; } .header-box { color: #8495a0; } .btn-cta-purple { position: relative; width: 75px; height: 28px; padding: 0 8px; text-align: center; text-transform: uppercase; font-size: 10px; font-weight: 800; line-height: 28px; border-radius: 14px; color: #fff; background-color: none; background-image: linear-gradient(to bottom,#fb68d5 0,#7865ff 100%); margin-right: 20px; cursor: pointer } .btn-cta-purple:hover { background-image: linear-gradient(to bottom,#ae68fb,#6652f3) } .header__new { border-bottom: 1px solid #202020; box-shadow: 0 1px 0 0 #353535; font-size: 14px; color: #fff } .header-box,.header__new { margin: 0 20px; padding: 15px 0 } .header-box { color: #8495a0 } .refresh-header-top{ width: 100%; } .header-top { position: relative; padding-bottom: 10px; font-size: 9pt; color: #fff; border-bottom: 1px solid #202020; box-shadow: 0 1px 0 0 #353535 } .header-top img { float: left; width: 45px; border-radius: 50%; margin-top: 2px; margin-right: 10px } .header-top .zuanshi { background: url(../img/header/zuanshi.svg) no-repeat center; width: 15px; height: 15px; display: -webkit-inline-box; background-size: contain; position: relative; top: 3px; cursor: pointer; margin-left: 5px } .header-top .zuanshi.is-vip{ background: url(../img/header/zuanshi_vip.svg) no-repeat center; background-size: contain; } .header-top .fa-user-crown{ color: #f3d60c; margin-left: 5px; font-size: 14px; cursor: pointer; margin-top: 3px; } .header-top .fa-user-crown.is-vip{ color: #ff5780; } .header-top .logout { position: absolute; right: 0; top: 0; color: #8495a0; } .header-top .logout:hover { color: #fff; } .user-names{ max-width: 100px; overflow: hidden; display: block; word-wrap: break-word; text-overflow: ellipsis; white-space: nowrap; float: left; font-size: 14px; } .header-top .group-name { background: #484848; padding: 2px 8px; border-radius: 10px; font-size: 12px; margin-left: 10px } .header-top .group-name.vip-bg, .page-profile .inset-header .about-me .user-name small.badge.vip-bg { background: #ff5780; } .header-top .group-name.authors-bg, .page-profile .inset-header .about-me .user-name small.badge.authors-bg { background: #2aa461; } .header-top p { margin-top: 10px; font-size:12px; color: #8495a0; cursor: pointer; } .header-center { display: flex; padding: 15px 0 } .header-bottom,.header-center { position: relative } .header-center .md-l { float: left; width: 40%; border-radius: 6px; padding: 10px; margin-right: 15px; background-clip:padding-box,border-box; background-origin:padding-box,border-box; background-image:linear-gradient(135deg,#3c3c3c,#3c3c3c), linear-gradient(-180deg, #3c3c3c 2%, #3c3c3c 98%); border:2px transparent solid; } .header-center .md-l:hover{ background-image:linear-gradient(135deg,#3c3c3c,#3c3c3c), linear-gradient(-180deg, #399dff 2%, #297dcf 98%); } .header-center .md-tit { display: block; color: #fff; font-size: 14px; margin-bottom: 10px } .header-center .dou,.header-center .jinbi { display: block } .header-center .jinbi i { background: url(http://www.meigongyun.com/template/iscwo_u8/iscwo/new/img/header/jinbi.svg) no-repeat center; background-size: cover; } .header-center .dou i,.header-center .jinbi i { width: 16px; height: 16px; display: -webkit-inline-box; position: relative; top: 4px; margin-right: 5px } .header-center .dou i { background: url(http://www.meigongyun.com/template/iscwo_u8/iscwo/new/img/header/dou.svg) no-repeat center; background-size: cover; } .header-center .pay-credit { position: absolute; bottom: 25px; background: linear-gradient(-180deg, #399dff 2%, #297dcf 98%); padding: 1px 10px; border-radius: 20px } .header-center .pay-credit:hover { background: #399dff; color: #fff; } .header-center .md-r { float: left; width: 50% } .header-center .md-t { padding: 9px; margin-bottom: 5px; border-radius: 5px; position: relative; background-clip:padding-box,border-box; background-origin:padding-box,border-box; background-image:linear-gradient(135deg,#3c3c3c,#3c3c3c), linear-gradient(-180deg, #3c3c3c 2%, #3c3c3c 98%); border:2px transparent solid; } .header-center .md-t:hover{ background-image:linear-gradient(135deg,#3c3c3c,#3c3c3c), linear-gradient(-180deg, #3fc67c 2%, #2aa461 98%); color: #fff; } .header-center .md-t span { color: #fff; display: block; margin-bottom: 5px; font-size: 14px } .header-center .md-t p { font-size: 11px } .header-center .md-t a { position: absolute; right: 10px; top: 5px; background: linear-gradient(-180deg, #3fc67c 2%, #2aa461 98%); padding: 1px 10px; border-radius: 20px } .header-center .md-t a:hover { background: #2aa461; color: #fff; } .header-center .md-b { padding: 9px; position: relative; border-radius: 6px; background-clip:padding-box,border-box; background-origin:padding-box,border-box; background-image:linear-gradient(135deg,#3c3c3c,#3c3c3c), linear-gradient(-180deg, #3c3c3c 2%, #3c3c3c 98%); border:2px transparent solid; } .header-center .md-b:hover { background-image:linear-gradient(135deg,#3c3c3c,#3c3c3c), linear-gradient(-180deg, #fb68d5 2%, #7865ff 98%); color: #fff; } .header-center .md-b span { color: #fff; padding-bottom: 5px; display: block; font-size: 14px } .header-center .md-b p { font-size: 11px } .header-center .md-b a { position: absolute; right: 10px; top: 5px; background: linear-gradient(to bottom,#fb68d5 0,#7865ff 100%); padding: 1px 10px; border-radius: 20px } .header-center .md-b a:hover { background-image: linear-gradient(to bottom,#ae68fb,#6652f3); } .header-bottom .my-home { display: block; font-size: 14px; margin-bottom: 10px; } .header-bottom ul { padding: 1px; display: flex; text-align: center; margin: auto; } .header-bottom li { float: left; width: 20%; cursor: pointer; } .header-bottom li i { background-color: #353535; width: 40px; height: 40px; display: block; border-radius: 50%; margin: 0 auto; margin-bottom: 5px; background-size: 50%; background-position: center; background-repeat: no-repeat } .header-bottom li i:hover{ background-color: #242424; } .header-bottom li i.ico_1 { background-image: url(http://www.meigongyun.com/template/iscwo_u8/iscwo/new/img/header/shoucang.svg) } .header-bottom li i.ico_2 { background-image: url(http://www.meigongyun.com/template/iscwo_u8/iscwo/new/img/header/xiangmu.svg) } .header-bottom li i.ico_3 { background-image: url(http://www.meigongyun.com/template/iscwo_u8/iscwo/new/img/header/anquan.svg) } .header-bottom li i.ico_4 { background-image: url(http://www.meigongyun.com/template/iscwo_u8/iscwo/new/img/header/dingdan.svg) } .header-bottom li i.ico_5 { background-image: url(http://www.meigongyun.com/template/iscwo_u8/iscwo/new/img/header/xiazai.svg) } .header__custom .icon.max { font-size: 18px; } .header-top p { margin-top: 10px; font-size: 12px; color: #8495a0; cursor: pointer; } .header-dropdown{ font-size:12px; } .header-center p { margin: auto; } .header-top p { margin: auto; } .header__cat { box-sizing: border-box; display: -webkit-box; display: -ms-flexbox; display: flex;
上面的代码一定要区分好!分别是黑色 + 白色的css
最后一步将底下的代码添加到 后台 – 底部设置 – 设置JS代码
<script type="text/javascript"> jQuery(document).ready(function($){ $('.ct h3 span').click(function(){ $(this).addClass("selected").siblings().removeClass(); $('.ct > ul').eq($(this).index()).addClass('show'); $('.ct > ul').eq($(this).index()).siblings().removeClass('show'); }); $("pre > code").addClass("language-php"); }); jQuery(".header-dropdown").hover(function() { jQuery(this).addClass('active'); }, function() { jQuery(this).removeClass('active'); }); </script>
大功告成
猜你喜欢
-
最新云豹直播2开放短视频直播观看时长控制共享方案+视频教程
2019-10-05 -
[PSD]全新UI邀请函界面纯洁UI psd
2019-12-01 -
全新付费进群系统源码 带定位完整版 附教程
2023-11-02 -
使用css/tevt-stroke属性制作文字描边
2019-09-28 -
清纯美女户外唯美高清桌面壁纸
2018-07-15 -
[亲测]【仿卢松松博客模板】个人博客主题Luss V1.22模版[wordpress主题]
2019-11-28 -
【多用户工单系统】多客服带短信与邮件通知工单系统商业开源版[ThinkPHP内核]
2019-11-28 -
【DEDECMS文章模板】财经、理财新闻资讯门户网站模板[自适应手机端]
2019-11-09 -
IP地址精解教学
2019-11-25 -
[亲测]【smarty_hankin】WP唤醒一款非常强大且开源免费的主题[WordPress主题
2019-11-21
-
[半测]【手赚网APP】dedecms织梦高仿手赚网APP下载导航网站整站源码带手机端
2019-11-01 -
免费资源下载站WordPress中文主题 Storeys v1.0.0
2019-12-04 -
京东CDN图床API接口PHP源码 图片上传加速
2019-10-27 -
比较火的聚合支付系统源码 免签约系统 / 跑分系统 / 拼DD系统 / app源码
2019-10-20 -
【尊享富理财系统源码】最新股权直销公排商城带佣金分红功能
2019-11-28 -
2019最挣钱的方式kangle虚拟主机空间IDC市场销售网站源代码
2019-10-03 -
10月全新优化任务悬赏兼职系统个人最新版全套源代码 优化修复多个BUG
2019-10-22 -
性感洛丽塔少女高清桌面壁纸
2018-07-16 -
[亲测]青丘狐 网页端包搭建运营
2019-10-22 -
16个 2.5D等距 AI 人工智能、机器人插画 .ai素材下载
2019-11-18
猜你在找
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
源码资源库 » wordpress ripro主题 用户右上角下拉模块