- <head>4 \/ V" M& N5 R
- <style>
3 _) m: d2 {) L2 b& \8 w1 y2 s, o/ v - .deng-box {# y! W$ T( F2 Q3 f- w/ d
- position: fixed;
8 ^' }# a& K5 C; L6 ^" [6 h - top: -40px;
! E7 Y$ H" N V8 r7 h, i3 y - right: -20px;
& j7 k0 c% z$ V4 `' ~& O - z-index: 999;
, ^1 m/ T9 I3 [ - }
6 q* h" U7 D- l" K* A) v4 L+ e1 F - , m: L5 r8 x! {2 B( I
- .deng-box1 {/ [4 m7 F* D. g/ A& S+ Q4 O
- position: fixed;
# f* P+ T* ~6 j4 O - top: -30px;5 ]4 r( S! j# o$ L' @2 E
- right: 10px;
4 M$ B0 `2 q5 i; B$ k* | - z-index: 999;/ z9 l- p5 X$ m
- }
1 q8 }' m! I3 X) b2 @0 l T3 Q -
! r8 s- b! x8 B$ m' B - .deng-box1 .deng {
) t9 `1 v3 h0 P4 O4 N; l6 X - position: relative;8 L- m5 Z+ f0 J4 R! w" n7 U3 M
- width: 120px;
7 O5 b( w( Y4 ^& l) { - height: 90px;) Z4 R8 H7 T+ k- {
- margin: 50px;
N5 ~, _ O* \0 o0 I+ w - background: #d8000f;( l, F: o) C4 E: E, g
- background: rgba(216, 0, 15, 0.8);
. ^2 }/ W$ F; X5 ^8 n - border-radius: 50% 50%;
1 n' N, }4 s1 ?/ t( _2 U - -webkit-transform-origin: 50% -100px;
& { s# a$ u: |7 I - -webkit-animation: swing 5s infinite ease-in-out;6 `$ V6 S" s8 c1 N9 B6 t8 M; E7 j, q
- box-shadow: -5px 5px 30px 4px rgba(252, 144, 61, 1);
; T4 w: p( w9 f% K! \# z3 e - }
3 s g G* w( u - ' a+ {: a8 I, W |, x) O( A
- .deng {6 r, M4 d" m5 d+ C2 Y
- position: relative;* s- v7 ^$ F1 o7 h5 o) ^
- width: 120px;7 ~1 [% w; y" z8 M2 g
- height: 90px;
( p( a9 F. [$ ^" F5 M' S - margin: 50px;
2 O D* i1 w8 S3 W7 J - background: #d8000f;
, Q+ k- m$ `! D4 B3 b. k" U - background: rgba(216, 0, 15, 0.8);* H) ?& ~, b5 J; h, f9 L }
- border-radius: 50% 50%;7 j/ @+ a$ S( r- O) L
- -webkit-transform-origin: 50% -100px;
& @( x+ L; u5 F* @ - -webkit-animation: swing 3s infinite ease-in-out;( S9 Q1 \$ f/ H0 U
- box-shadow: -5px 5px 50px 4px rgba(250, 108, 0, 1);9 j( g8 w1 y; w- m4 z
- }
! g! x8 ?; I" E8 @, O - ; u% [) I- j: f5 y
- .deng-a {
* {% u6 S: r, p( |8 @ - width: 100px;2 d7 l+ W" R J* x2 e& f1 ^
- height: 90px;9 Z" v/ f J; O4 k. A
- background: #d8000f;
- F$ G$ \) l( B1 v - background: rgba(216, 0, 15, 0.1);
$ d( z; k1 q# ]1 w: o* P+ f1 N0 P/ M - margin: 12px 8px 8px 8px;$ B! e T/ j' p; b) o. g6 h! {
- border-radius: 50% 50%;
' T( J- T( I! ~/ \% I - border: 2px solid #dc8f03;2 h) T4 N. L8 {2 O
- }
: Y) Z K) m! s - , y) @3 n( ]4 p4 K; S" k
- .deng-b {
! e" q K5 H: {9 ], c - width: 45px;
8 S7 M: }$ q/ A4 C: W - height: 90px;
" q/ E) G2 z0 J0 j - background: #d8000f;2 {' K+ }6 _# ?. m; X
- background: rgba(216, 0, 15, 0.1);
9 P: `5 c9 u. D9 b3 w, Z' M - margin: -4px 8px 8px 26px;8 i, C0 d% r% f4 b
- border-radius: 50% 50%;, Y) D5 T) o n' o6 X8 ~# _
- border: 2px solid #dc8f03;1 S+ r j7 v1 T5 Q! {7 x7 ]
- }
" ]8 b6 {8 F+ k( X -
2 i8 Z/ D# E) i7 L( G& z# | - .xian {# F- {2 e$ ]. a* {
- position: absolute;1 i3 _1 i T( w, R( k* t
- top: -20px;
# `4 g+ Y& ?; y- M - left: 60px;( {+ J) x1 p% a
- width: 2px;1 O0 c: m0 r/ @ |% ]3 g
- height: 20px;4 e+ \2 s* \; `# a( v- s
- background: #dc8f03;) [! k) U# u s4 i) g9 E
- }
/ H4 f% z! R( L$ q0 m -
* _- t) B; o" k" R! X4 p6 h - .shui-a {) Y0 B' K0 V+ ^0 x& t3 u+ v" ^
- position: relative;- Z) w7 n+ d( x0 H5 f1 U
- width: 5px;
: Z0 Y0 |/ s; F' U3 {5 R, k - height: 20px;( [) [; `# b- T
- margin: -5px 0 0 59px;
7 e* y" a7 {( r: L! ` f - -webkit-animation: swing 4s infinite ease-in-out;0 L3 r; h8 ?4 J- [) K
- -webkit-transform-origin: 50% -45px;2 D; t1 K) E; D4 J# f- A
- background: #ffa500;
+ i O! ?% ~( F; {. ~; T( `5 k - border-radius: 0 0 5px 5px;0 Z! [8 `* C& y. `. k
- }
5 N/ r+ ]6 }. V! B+ D -
! p* Y/ r2 y$ J! Y. ] J' D: f! ~% X - .shui-b {
; k' \4 \+ _# s; l - position: absolute;, Q0 h6 F- c! S
- top: 14px;8 T7 R( K! t. v6 a, J1 E
- left: -2px;
$ q% E# `8 i$ f% u2 d" b8 r - width: 10px;! i. H5 a3 U1 _/ @
- height: 10px;% O5 e# Y A& _$ g5 f6 Z$ g! j
- background: #dc8f03;
% Z) s J+ k1 D" t" M' f9 C - border-radius: 50%;
, F) B r7 d8 g! d$ N* g; h - }8 ?! A2 ?( d3 s6 _1 m' X
- ( T! e/ n- z1 b
- .shui-c {4 M; ` H7 n" [6 t& p) l
- position: absolute;
) J7 X1 Q0 \$ j3 K2 o - top: 18px;
1 E7 [ ? b( `4 z - left: -2px;: X9 S3 m7 ?* A
- width: 10px;
! {8 m: Y4 D3 c, l - height: 35px;
6 e9 S+ H: T( E - background: #ffa500;" ~/ ^" E$ J0 j7 {+ V
- border-radius: 0 0 0 5px;
- X& s# w0 G' B" q7 q - }& g4 i" g& g% i+ g
-
* V9 \- X/ T c. } - .deng:before {
0 k p: G( O7 [ - position: absolute;
/ {) v1 I4 c. d9 Y p8 p - top: -7px;5 \. v2 H- m5 ]( v1 n3 O
- left: 29px;
9 Q/ Y" j2 c4 e8 x1 } - height: 12px;9 {0 o/ z0 {- j0 u2 h
- width: 60px;
5 k& f3 u8 j. Z+ T9 Q! f1 w - content: " ";
0 q) h: }- T0 o4 S% u - display: block;
/ }7 e! |5 P8 @. C% I - z-index: 999;: ^, A" w) I% [2 b2 W9 C
- border-radius: 5px 5px 0 0;; N, v$ n+ ]/ p! E* W6 d k
- border: solid 1px #dc8f03;
/ Q1 N. g# a& g, r - background: #ffa500;+ v" I( t, j& u- y* H
- background: linear-gradient(to right, #dc8f03, #ffa500, #dc8f03, #ffa500, #dc8f03);! q' Q9 H" O; u4 L+ [, k5 p
- }
1 u* v, b8 S' }! w5 u3 v - , E: a, o& }* ?1 _/ ~) i7 W a# z
- .deng:after {
$ L& j, g8 d: v- I) g0 p9 p - position: absolute;3 {; C5 S- y# v) i$ J. [
- bottom: -7px;; m" f# B4 P7 i4 c* \
- left: 10px;
$ I5 c) w7 b5 }# X7 }: m/ M - height: 12px;- K/ \4 v3 ?( \! e/ l h
- width: 60px;
+ T# g: @) D: _) ^% h5 I - content: " ";0 Q6 @: G& c V0 H9 F+ p3 ?, @
- display: block;. { a0 r3 {# D% K
- margin-left: 20px;
, D+ N3 _: h- ?6 i4 K0 F6 E( z, ]; R3 Z - border-radius: 0 0 5px 5px;
- p, }- `; ]% X - border: solid 1px #dc8f03;% b" r: E6 I7 o- p
- background: #ffa500;
; l( Z7 [$ B: M' }0 } - background: linear-gradient(to right, #dc8f03, #ffa500, #dc8f03, #ffa500, #dc8f03);
0 e' s7 {* c1 Z: l7 w4 Y2 N - }4 m. q( J/ o) H0 u: z3 R" K0 y( O
-
2 d& x$ _# t1 { r- k, [9 X - .deng-t { Q8 F9 L% J$ d% w/ F0 b' O
- font-family: 华文行楷,Arial,Lucida Grande,Tahoma,sans-serif;3 C+ R8 l+ T$ D7 s. n8 @8 [
- font-size: 3.2rem;- \2 Q% b0 m) P
- color: #dc8f03;' j8 O! x5 s+ W. r
- font-weight: bold;6 p0 k: r+ t/ \9 L6 V" C
- line-height: 85px;
! u4 l5 v. C8 u1 G' h; C2 p - text-align: center;
, K2 u& z( o5 b - }
/ I6 W4 M; t" e' d6 n# g! z2 q -
( I5 f5 L! n8 X/ ~/ k+ a# `% y# F - .night .deng-t, 4 Z. _7 a8 U/ N' H5 y
- .night .deng-box,
7 F4 ^1 Y! ?5 f, A% _% o - .night .deng-box1 {5 H: P5 j: ^7 a. @: y: C. E
- background: transparent !important;7 X. E! I+ y8 g5 F7 w
- }; A% M( `# e& E2 o
-
% i% l9 l4 I& \# i' A - @-moz-keyframes swing {7 Y) Y, ~+ K$ i5 d
- 0% {
4 q8 n) ~3 r# ^; R6 z - -moz-transform: rotate(-10deg)
% d! u0 F' ~9 W9 p - }, f8 @; u9 t$ J
- . H5 i7 G8 Q; P3 P8 X0 N# a: s% k! A
- 50% {
2 g0 n; _7 n! m" T - -moz-transform: rotate(10deg)
0 C: ~) \: \" ~7 S3 M8 s8 x - }
9 u9 y }0 j( _: e$ g -
" w- T6 N/ L$ m2 U - 100% {4 ~ a0 _! T5 O+ a
- -moz-transform: rotate(-10deg)
7 |0 {8 y) Y8 P - }
" I3 R1 e" A9 c: }% e& j4 i - }
2 d5 o4 T) e" \. o -
; y9 _* Z9 S% f) S* v, v - @-webkit-keyframes swing {3 F) z& _: I2 W) J' j8 w
- 0% {
0 m) v# j( R" I* |, {" r7 Y I) G - -webkit-transform: rotate(-10deg) d! u! }4 e# p
- }
" ?9 N; h% M8 h9 u -
: M. j4 }' k! Y$ D! q - 50% {+ P9 P( Q* o, F; U& B4 h, m
- -webkit-transform: rotate(10deg)' Z2 l, F: l. R( S* o( \! [
- }
" M/ Y# K9 Q" f* h4 o( W -
" n. }0 ^( g. ^4 z - 100% {9 g4 o2 Z. o: a. a4 l) L9 O
- -webkit-transform: rotate(-10deg)
: [2 i, r0 f8 e - }
& G" W; c3 \( G1 i6 Q - }& ?; w U; _0 m+ P. K: O- v
- </style>
0 M& }9 p- L+ W1 Q) p1 P6 b - <body>& n& M# t; ]$ a6 J: ]% E
- <!-- 灯笼1 -->
, y* D' w6 b& c' C& v0 v - <div class="deng-box">/ X2 W p6 x$ S% x! p
- <div class="deng">
) @2 V: M8 e8 B; u - <div class="xian"></div>) S: z1 q7 w* \/ P; g# v
- <div class="deng-a">! m7 R U2 f1 d& h7 ], _
- <div class="deng-b"><div class="deng-t">庆</div></div>
4 g* W! p0 u/ n" X( a9 S# a( k% x - </div>
! F0 i! N+ c# D" R - <div class="shui shui-a"><div class="shui-c"></div><div class="shui-b"></div></div>. j& I) g) g- c! W+ c! K/ H+ x7 R
- </div>
6 ?. h$ N) P+ c% ` - </div>5 j" a8 [4 N6 Z6 M9 X& i: Q
- <!-- 灯笼2 -->
: F) O6 x* c+ y7 w - <div class="deng-box1">: a( n. T( t* c7 d T x" M- r/ A/ {
- <div class="deng">, `* s2 I x, j
- <div class="xian"></div>
. V# |- \5 B& t) X- G - <div class="deng-a"> a2 E% ?. ]: [$ Q7 a) N
- <div class="deng-b"><div class="deng-t">国</div></div>! s$ y' z: f; X
- </div>3 Z8 e+ ?. V; u1 B, t' j& C4 K
- <div class="shui shui-a"><div class="shui-c"></div><div class="shui-b"></div></div>
( }, e2 w; O4 P1 {8 v% a - </div>
/ ~, V; k% r) ]3 T - </div>) Y0 A- D2 _, V% o
- </body>
复制代码 上面是两个灯笼在摇摆(示例:www.5gbbs.top),在右边。现在要加两个在左边。该怎么加代码?
- h" ^+ d; G; L, Y" I( n' Y! b, L- w. K4 W" e: q1 v8 f
|