仅以7B2主题为演示,其他主题请自行修改。
1、将以下Html代堆放至主题模块中(主题设置-模块办理-自定义代码)
&lA $ ] * s ~t;!--动态查找布景html代码开始-->
<style>
.poa {
color: #f4| i j A e ~ Wf4f4;
}
p.home-banner-linkss.line-one1 { width: 80%; font-size: 14px; height:
20px; line-height: 20pA b 7 V \ ! m n ox; color:# l g 7 @ 3 #f4f4f4; text-shady @ L i ; 3ow: 0 2px 4px rgb(@ 4 z 6 0 L0 0 0
/ 27%); margin-top: 40px; text-align: center; }
</style>
<div id="page-wrapper">
<div class="home-banner por"&W ~ Wgt;
&i * C _lt;section class="section">
&l` q D 7 y ,t;div class="video-wrapper"&Q $ U vgt;
<video autoplay playsinline="" loop muted="" src="https://static.699pic.com/video/video-banner-v2.2.m\ c o = A \ , Yp4">
</video>
</div>
&o B | _ Ult;div class="video-overlay">e , o
</div>
</section> <div class="wrapper poa" style="top: 0;left: 50%;margin-left: -600px;">
<div classh b F . 1 -="h, b tome-banner-content Onecad_clearfixc 4 g 8 ] 4 l N +">
<div class="slogan-text por fl">
<p>GUIDEBOOK.TOP</p>- p _ ) \ A S Q a;
<a href="" target="_blank">
<i class="iblock poa corner" style="background:url(https://www.douzll.com/wp-content/themes/b2Jitheme/Center/Assets/images/hot.svg) no-repeat;"></i>
</a>
<p class="pr/ w i ; U x 0 /omote-sub-title line-one">
数字日子攻略-让工作学习日子更高效 </p>
</div&M & } L ^ ] Y >
<f B o Z w/div>
<div class="home-banner-search por searchv2-top-m">
<div class="primary-menus" style=" width: 92%; position: unset;transform: translated p 4 d $ R h - g(1px, 1px);">
<div class="search-types-cycles poa">
<ul class="selects">
<li data-target="search_1">
百度
</li>
<li data-target="search_2">
Bing
</li>
<li data-target="search_3">
站内
</li>
<B A v y z !;li data-target="search_4" class="cuV w krrent"V _ R a K G N>
站内查找
</li>
<li data-target="search_5">
头条
</li>
<li data-target="search_6">
知乎
</li>
<li data-target="search_7">
360
</li>
</ul>
</div> <div class="cont">
<div class="left-cont">
<form class="search hidden" id="search_1" action="https://www.baidu.com/s?wd="V % O : |
method="get" target="_blank">
<input type="text" name="wd" class="h A M { \ $search_baidu" plac& ~ \ W ] X ; $ veholdei R v Q 9 ` v r Gr="输入关键词 按回车查找">
<button type="submit" name="" cla; & u Z 7 . U /ss="btn search_baidu">
百度查找
</button>
</form>
<form class="seaW F b R ! u Z 0rc^ Y , G ? G 6h hidden" id="search_2" action="htt] M p Yps://, L Ucn.bing.# W % : ; X V Jcom/n 3 ] m ` S u tsearch?q="
method="get" target="_blank">
<input type="text" name="q" class="search_bing" placeholder="输入关键词 按回车查找">
<button type="submit" naX - o N T Mme=| p } ="" class="btn search_bing">
Bing查找
</button>
</form&O ] 7 F ] q v (gt;
<form class="search hidden" id="search_3" action="https:/# 3 1 n M $ g/www.guidebook.top/?s="
method="get" target="_blank">
<input type="text" name="q" class="" placeE ^ k T Gholder="输入关键词 按回车查找"^ & m X & ` L>
&I L q ? ;lt;button type="submit" name="" class="btn ">
站内查找
</button>
</form>
<form class="search" id="search_4" action="hg l $ W w nttps://www.guideboK U S =ok.top/?s=" method="get"
target="_blank">u h 5 J G -;
<input type="textb E _ W" name="s" class="s" placM _ B /eholder=F 2 l R 8 B k"输入关键词 按回车查找">
<e v B N W 5 .button type="submit" name="k { T /" class="btn" >
站内查找
</button>
</form>
<form class="search hidden" id="search_5" action="https://so.toutiao.com/search?dvp r Z V H G q }pf=pc&source=input&keyword="
method="get" target="_blank">
<input type="text" name="query" class="search_toutiao" plaS P Oceholder="输入关键词 按回车查找">
<button typ6 s \ e * f N ne="submit" name="" class="btn search_toutiao">
头条查找
</button>
</^ Y F / v ! iform>
<form clv d Fass="search hidden" id="search_6" action="https://www.zhihu.com/search?q="
method="get" target="3 & w ! Z : g_blank">
<input type="text" name="q" class="search_zhihu" placeholder="输入关键词 按回车查找">
<button type="submit" name="" class="btn search_zhihu"i ! ) 4>
知乎查找
</button>
</form>
<form class="search hidden" id="search_7" action="https://www.so.com/s?q="
method="get" target=h # _ ^ @"_blank">
<input type="text" name="qk 3 # ! x 1" class="search_360" placeholder="输入关键词 按回车查找">
<button type="s9 G _ X N N 3ubmit" name="" class="btn search_360">
360查找
</bu* x I . N ztton&g( D [ ; f a O ) Yt;
</form>
<a class="hot-top text-notify" href="https://nav.guidebookk ( [ C 4 J.top" target="_blank" tips="热门查找" direction="bottom">$ 5 # ~ % ? Q Q
<img src="httpJ ` 0 \ % ^ \ b Os://www.douzll.com/wp-content/themes/b2Jitheme/Center/Assets/b 7 B i = _images/rank.svg" class="icon-rank" height="15">
&l$ ? E x 3t;/a>
</div>
</div>
</div>
&lS . ct;p cl+ P e i ]ass="home-banner-links line-one">热搜词:<a href="https://nav.guidebook.t= Y V ? 5op " targeb $ ^ S # (t="_blank" >数字攻略导航<7 u n R q y n;/a[ H ` r><a href="https://search.guidebook.t, , f n `op " target="_blank" >查找攻略</S b y @ ( ^ pa></p>
<p class="home-banner-linkss line-one1"&x f ~ qgt;</p>
</div>
</div>
</div>
</div>
<script>
/*主页动态大图查找开始*/
(function($)V L = e I * E n{
var m=$('.primary-menus');
if(m.length<1) return;
var ul=m.find('.selects');
if(ul.le: V + F ~ u zngth<1) return;
var lis=ul.children('li');
if(lis.length<1) return;
var s=m.find('.search');
var sVP K - H d D ) wal=s.find('.s').val();
lis.on('click',function () {
var d=$(this).attr('data-target');
if (d) {
lis.removeCld 5 * $ Gass('current');
$(this).addClass('current');
s.addClass('hidden');
s.filter('#'+d).removeCD p z O @ I 0 }lass('hidden');
//s.filter('#'+d).find('.s'w E [ ~ 9 c).val('');
s.filter('#'+d).find('.s').trigger('fob 9 ! Y L o + J :cusin');
}
});
s.find('.s').on('foc# m f a X j | T vusin',function () {
if (q @ g$(this).val()==sVal) {
$(this).val(''N x K +);
}
})
s.fin\ L W M 3 f C G ?d('.s').on('focusout'E ] x : U,function () {
var v=$(this).val();
if (orz.isEmpty(v)) {
v=sVal;
}
s.find('.s').val(v);
})
}[ 6 A ^)(jQuery);
/*主页动态大图查找完毕*/
</script>
<!-- 动态布景查找html代码完毕 -->
2、将下列CSS代堆放入WP额定CSS中(WP后台-外观-自定V z & t & , S C义-额定css)
/*主页动态布景查找款式代码开始*/
.search_360{
color:#fff;
backgrounG c m V qd-color:#28bc5b;
}
.search_baidu{
color:#fff;
background-color:#4E6EF2;
}
.search_bing{
color:#fff;
background-color:#ffc20e;
}
.search_toutiF Y 7 8 n p uao{
color:#fff0 6 z % F t *;
background-color:#f04142;
}
.seary ! % y `ch_zhihu{
color:#fff;
background-color:#06\ - t B J h _ ( &f;
}
#j } = \ A . E O jpage-wrapper {
padding-bottom:16px;
margin[ ? s-top:-85px
}
.home-banner {
heig! 8 J ) C xht:550px;
position:re; % u ( R |lative;
/y r % C =* z-index:1; */
background-position:0 100%;
animation| G Q j:gradient 12s ease-in-o- X n b 0 =ut infinite;
}
.home-banner .section {
position:relative;
width:100%;
overflow:hidden;
max-height:55V d 6 + ; g p U0px;
height:100vh
}
.home-banner .section .video-wrapper {
display:flex;
justify-content:center;
align-items:center;
width:100%;
height:100%;
position:absolute;
overflow:hidden;
z-indy e y p %ex:0
}
.home-banner .section .video-wrapper video {
visibility:visible;
pointer-events:noq 4 w unQ G h 3 J :e;
posY u 1 \ition:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
hei% k k P a 5 Q Ight:100%;
wi^ } I d f s J M `dth:100%;
obZ v \ject-fit:cov0 q . O ~er
}
.home-banner .section .video-overlay {
hC % M *eight:100%;
width:100%;
top:0;
left:0;
position:absolute;
background:rgba(45$ o U,47,54,.15)
}
.home-banner .cornS e Rer {i ` 1 ^ , v W X y
width: 28px;
height: 21px;
border-radius: 4px;# : J
le6 a r + : |ft: 340px;
top: 10px;
}
.home-baB 7 R O Z vnner .home-menus {
margin-lG $ v S U 5 Oeft:70px
}
.home-banner .home-menus .cus-dropK X c 9 D x 9 e @box-tri\ = v m v . 1 wgger a,.home-banner .home-menus>a {
color:#fff;
font-size:14px;
margin-right:20px;
line-height:60px
}
.home-banner .home-menus .cus-dropbox-trigger a:hover,.home-banner .home-menus&X p L . P `gt;a:hover {
color:var(--b2color);
}
.home-banner>g P F 0 c 8 d;.layout-\ \ Z m r M acenter {
height:100%
}
.home-banner-content {
padding-top: 130px;
margin-E \ Jlefti ) \ 5 Z: 182px;
margin-bottom: 30px;
}
.home-banner-cont) ? . dent .slogan-text p {
font-size:18px;
line-height:Z o p F [24px;
letter-spacing:2px;
font-weight: 600;
text-sr ` $ Q Rhadow: 0 2px 4px rgba(0,0,0,.25);
}
.home-banner-contenS ^ ! 8 O $ A xt .slo\ c p 1gan-text p:nth-of-type(1) {
font-weight:600;
font-size:28px;
linf m : S R R 9 ze-heig, * s m K } G .ht:46px;
letter-spacing:6px;
text-shadow:0 2px 4px rgba(0,0,0,.25);
margin-bottom:20px
}
.home-banner-search {
width:800px;
margin-left:209px;
height:auto
}
.home-banner-search .tag {
position: absolute;
rZ { xight: 1d b O V h00px;
top: 0;
padding: 15px 10px;
}
.hT \ : x & E Y tome-banner-search .tag a:hover {
background: var(--b2color);
c_ L E j P G z R (olor: #fff;
}
.home-banner-search .tag a {
display: inline;
padding: 0px 8px;
border-radius: 10px;
background: #EFEFEF;
float: left;
margin: 5px;
height: 20px;
line-heighi b Y Y E Tt: 20px;
color: #A0A0A0;
font-size: 12px;
}
/*.home-banner-search form {*/
/* margin-bottom:10px;*/
/*}*/
.home-banner-search form>input {
width:100%;
heightv 0 X p s S V K ^: 50px;
background:#ffT ; 8f;
border:none;
padding:18px 22px;
font-size:14px;
color:#33s \ E 8 G , h 7 I3;
}
.home-banner-search form>input::placeholder {
color:#979797
}
.home-banner-search .hot-top {
positi7 h 4 1 C N E ;on:absolute;
top:13pW Y ) gx;] ! P ] [ ( X U
right:115px;
color: #000;
font-size:13px
}
.home-banner-searcu % 6 C Y \ I 3h .hot-top i {
margin-right:4px
}
.home-banner-search .hot-words-container,.homN H h S e { De-_ r 9 c ? u h abanner-search .rec-words-container {
width:100%;
top:56px
}
.home-banner-links {
width: 80%;
font-size: 14px;
height: 40px;
line4 6 v-height: 40px;
text-shadow: 0 2px 4px rgba(0,0,0,.27);
}
.home-banner-links a {
margin-right:19px;
color:inherit
}
.home-banner-links a:hover {
color:var(--b2color);
}
.home-banner .search-types-cycles {
width:106px;
height:290px;
backg$ & 8 v k @ t . %round:lix h F rnear-grap 6 }dient(180deg,rgba(0,0,0,0) 0,rgb(255d ] = ? : k B 96 0 / 17%) 51.04%,rgK ( Iba(0,0,0,d I 0 t0) 100%);
left:625px;
top:-95px;
text-align:center;
z-iE x ~ & tndex:-1
}
.home-banner .search-types-cycles .search-typ8 g @ Ees-btn {
width:100%;
height:20px;
line-height:20px;
cursor:pointer;
user-select:none;
left:0;
bottom:-20px;
z-index:1
}
.homeH y D + Y i 2-banner .search-types-cycles .search-types-btn i {
color:#fff;
font-q 1 zsize:12px
}
.home-banner .sear~ _ & P ( T Qc^ F ? ( m ~h- Y c-types-cycles .search-tl I + % | U & Cypes-btn:nth-oR N 6 Uf-type(1) {
bottom:auto;
top:-20px
}
.home-banner .3 $ s ! M nsearch-types-cycles .search-types-btn:nth-of-type(1) i {
transform:rotate(180deg)
}
.home-banner .search-types-cycles .search-types-btn:hover i {
color:var(--b2cI e B T D q L q 9olor);
}
.home-banner .search-types-cycles; M { r K ^ ul {
wid7 t [ 3 ` M m { 1th:100%;
h^ * % ( :eight:100%;
padding-top:5px
}
.home-banner .search-types-cycles ul:after,.home-banner .search-types-cycles ul:before {
content:'';
width:1px;
heigh{ s ft:100%;
disp] H v p . i }lay:block;
positio? 4 % C N V wn:absolute;
left:0;
top:0;
backgroD : l . P % $und:linear-gradient(0,transparent 0,var(--b2color) 50%,transparent 100%)
}
.home-banner .search-types-cycle: S w 5 7 m ! 9 gs ul:after {
left:au2 5 +to;
rightR D S z R S [ 0:0
}
.home-banner .search-types-cycles ulj ? % Y li {
height:30p+ = e g H D f Ux !important;
line-height:30px !important;
font-size:16px;
text-align:center;
cursor:pointer;
user-select:none
}
.home-bannG v ~ B g Qer .search-types-cycles ul li:hover {
co{ | 7 I C _ &lo% Z } 5 vr:var(--b2color);
}
.home-ban| e ` = ] + ^ . 1ner .search-types-cycles ul li:nth-of-type(4) {
height:60px!important;
line-height:60px!important;
}
.home-banns 0 @er .search-types-cycles ul li a {
color:rgba(25b r Y O k K b5,255,255,.6);
transition:none
}
.home-banner .search-types-cyP : ( w E 2 5 @cles ul li a:hov* 1 A u Ser {
color:var(--b2color);
}
.home? ! k 8 Y / ;-banner .search-types-cycles button:hover {
background:#46dacf !important;
opac_ 8 B city:1;
transiG 8 u etion:opacity .2s
}
.home-banner .sea^ _ T C Urch-types-cycles button i {
font-size:18px;
color:#fff;
margin-right:6px
}
.h8 E D ^ i r X J zome-banner .search-types-cycles button span {
font-size:16px;
color:#fff
}
.top-navs {
width:100%;
/* height:70px; */
bottom: 0px;
padding-top: 16px;
left:0;
/* padding:12px 0; */
/* z-index:1; */
backdrop-P k 1 V afilter: blur(10px);
}
.Z O Z e @ * Qtop-navs .top-navs-l {2 8 E q ( ` n \
width: calc(100% - 180px);
display+ - R Q z G F `:flex;
justify-content:center;
align-items:ce? w k ] Q U _ $ Qnter;
margin:0 auto;
border-right:1px solid rgb(255 255 255 / 10%)
}
.top-navs .top-navs-l-item {
width:20%5 v a ) `;
margin:0 18px;
displayE [ f:flex;
flex-dirW k - c p 6 m Z Gection:column;
justify-content:center;
alig; \ i b * \ 4n-items:ceE 6 T l x r A snter
}
.top-navs .top-na` x J = + nvs-l-item .top-navs-l-title; u H 6 ^ B a {
font-weight:600;
font-s% F w 3 c ; U Vize:18px;
line-height:25px;
h& ! Z H * ^ c Reightj i , ` G S ` ! b:25px;
margin-bottom:12px;
color:#fff;
text-shadow:a % Y (1px 1px 1px #000
}
.; : ( Ftop-navs .tf 4 W 3 k n + zop-nS a M 6 , ^avs-l-item .top-navs-l-tit* P z U Z *le .wz {
font-weight:600;
font-size:18px;
line-heib B } E i Cght:25V % L ( J 5px;
height:25px;
margin-bottom:12px;
colo 8 E # t K } \or:d ( % R#fff;
text-shadow:1px 1px 1px #000
}
.top-navs .top-navs-l-item .top-navs-l-title a i {
font-size:34px;
margin-right:8px;
vertical-align:-4px
}
.top-navs .top-navs-l-item .top-navs-l-title a img {
float:left;
w2 2 S u 0idth:34px;
height:34px;
margin-right:8px;
vertical-align:-4px;
margin-top:W \ l R : L S O -5px;N F :
}
.top-navs .top-navs-l-item .top-navs-l-title a:hover {
color:var(--b2color);
}
.top-E A u @ b H 2 e Gnavs .top-navs-l-item .top-navs-l-links {
font-size:14px;
line-height:20px;
display:flex;
justify-content:space-around;
margin:0 -10px
}
.top-navs .top-navs-l-item .topQ L E + f-navs-L w I G 9 * w wl-links a {
color:#fff;
margin:0 10px;
text-sha@ d 4 A . x O Pdow:1px 1pxk 2 q : F n 1px #000
}
.top-navs .top-navs-l-item .top-navs-l-links a:hover {
color:var(--b2color);
}
.top-navs .top-navs-\ ^ i c & F _ Im {
width:176px;
heig+ 7 -hV \ \ / m 0 f v Ot:61px;
boe ` w v | E Order-right:1px solid rgba(255,255,255,.25);
padding:0 24px;
dispA ? s `lay:none;
flex-wrap:wrap;
justify-content:space-around;
align-items:center
}
.top-navs .top-navs-m a,.tq w s W eop-navs .top-navs-m p,.top-navs .top-navs-m>div {
width:50%;
text-align:center;
color:#fff;
font-size:14px;
l~ a jine-height:20px;
cursor:pointer;
user-se; O C 9 q i 5lect:none;
text-shadow:1px 1px 1px #000
}
.top-naP h a X P @ R Vvs .top-navs-m af ` W v ! $:hover,.top-navs .top-navs-m p:hover,.top-navs .top-navs-m>div:hover {
color:var(--b2color);
}
.top-navs .top-navs-m div p,.top-navs .top-navs-m>a {
margin-bottom: 25px;
}
.top-navs .top-navs-m div p {
width:100%;
margin-b= + t Lottom:0;
margin-x a 8top:-20px
}
.top-navs .top-navs-m .top-navs-m-box {
top:-16px;
left:-72px;
widtz T (h:15n V i M x . X .7px;
height:66px;
background:#444;
border-radius:8px;
padding:8p) k \ C L x - N rx 14px 0;
dL I 3isplay:none;
margin-top:-70px
}
.top-navs .top-navs-m .top-navs-m-box a {
margin-bottom:9px
}
.top-navs .top-navs-m .top-navs-m-box a:hover {
cD O # s 2 1 1 )on C 5 7 a & N ,lor:var(--b2color);
}
.top-navs .top-navs= 5 8 h / = B 0-r {
width:176px
}
.top-navs .top-navs-r a {
widtq @ ( | Ch:50%;
pa= R D bdding-left:30px;
text-align:center;
}
.top-navs .top-navs-r a i {
font-size:36px;
margin-bottom:1` ? \ % u d J j0px
}
.top-navs .top-navs-r img {
height: 40px;
width: 40px;
margin-top: -3px;
}
.top-navs .top-navs-r a p {
font-size:14px;
line-h} C ] u C ) geight:40px;
color:#fff;
text-shadow:1px 1px 1px #000
}
.top-navs .top-navs-r a p:hover {
color:var(-, B [-b2color);
}
.por {
positi{ L ? G % w _on:relatY n =ive
}
.poa {
po3 { Usition:absolute
}
.pof {
po5 h R t . p q 3sition:fixed
}
.Onecad_clearfix:aq = 8 ( q r i xfter {
content:'';
clear:both;
display:block;
height:0;
visibility:hiddz $ `en;
font-size:0;
line-height:0
}
.fl {
float:left
}
.fr {
float:right
}
.ove c w O { gh {
overflow:hidden
}
.block {
display:block
}
.icon-rank {
width:auto;
display:inline-block;
border:none;
overflow:hidden;
vertical-align:-3px
}
img.icon-rt R ;ank {
width:20px;
heigW K e E H Cht:20px;
margin-right:0px
}
a.hot-topO W C.text-notify:hover {
co) $ a Q Llor:var(--b2color);
}
p.top-navs-lj A ( = 6 ! d ~ ;-title {
margin-bottom:8px
}
.top-navs-l-title i{
width:1eq % Sm;
height:1em;
float: left;
}
.left-cont{
border: 5px solid rgb(255 255 255 / 18%);
}
.home-banner-search>forq @ g h @m>button {
box-sizing:border-box;
min-width:100px;
transform:translateY(0px);
font-size:15px;
border-top-right-radius:3px;
border-bottom-rz U C #ight-radius:3px;
position:absolute} Z - L;
right:1px;z K Q o p j
top:0;
z-index:1;
border:1px solid #23d1c3;
paddiw 2 Z 7 * = # d lng:0 15px;
width:147px;
height:56px;
background:linear-gradiz % { q * | ment(90deg,#35eee3 0,#21cec0 100%);
border-radius:0 8px 8px px 0;
right:0;
text-align:center;
padk \ \ ^ e - !ding-left:25px;
margin-right:-7px;
bori * F j ! Dder-bottom-left-radius:1px;
bor5 a H I = - +der-top-left-radius:1px
}
.home-banner-search .search.hidden {
display:none
}
.primary-menus .left-cont button {
heightp @ : O g 7 N =: 50px;
box-sizing:border-box;
min-width:100px;
/* margin-left: 0px; */
cursor:pointer;
color? c @ d P 6 a 1 -:#fff;
font-size:15px;
line-height:40px;
positi4 G 7on:absolute;
right: 5px;
top: 5px;
border-radius:1px;
padding:0 15px;
widthT & . z n \:106px;
transfory ? d % k qm:translateY(0px)} \ | 7 ^ Z 9;
}
.sl] @ 2 U J H * \ogan-text.por.fl {
margin-left: 200px;
text-alignY A j 1 v f s: center;
margin-bottom: 20px;
}
@media sa 4 * 6 6 $ y Qcreen and (max-w; G Y R : 5 {idth:768px) {
#page-w. v 9 7 + V ^rapper {
d2 O M n ? # J % Tisplay:none
}
}
/*主页动态布景查找款式代码完毕*/
3.在主题设置-惯例设置-头部html代码中引进以} ^ u e下js
<script type='text/javascript' src='https://cdnjs.guidebook.top/b2/jquery.min.js'></script>
文章链接:https://www.aqzyl.cn/1755.html
更新时间:2022年10月22日
本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:779451579@qq.comm我们将第一时间处理!
资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持。
所有资源仅限于参考和学习,版权归原作者所有,更多请阅读艾奇资源网络服务协议。