tid=65920& 本帖最後由 IT_man 於 2017-8-19 21:30 編輯
/ x6 x2 j0 N% V1 R8 u+ {6 a+ ^
DIY調用圖片、幻燈片縮放比例圖片變形修正7 U3 J& A$ I- C" r
. R: Z* h, m0 q/ s" P# V& O& c打開調用模版,原本我的調用模版是:. T) U5 C+ y: S
4 e/ [5 W& L& C ^& e5 s
<div class="module cl slidebox">
9 X6 L) K/ w) j1 e1 K <ul class="slideshow">
$ M- q* s( G: v& o1 \6 F& }- Q [loop]! D5 P5 U7 p& _& y! L. u, u0 L. ]
<li style="width: {picwidth}px; height: {picheight}px;"><a href="{url}"{target}><img src="{pic}" width="{picwidth}" height="{picheight}" /></a> <span class="title">{title}</span></li>
( q" q4 O/ Q2 N6 n" b [/loop]
2 t, T* y1 y4 c$ u# n </ul>
" i9 C1 n7 p1 }# |& [/ w</div>
% |- b. b. v- O<script type="text/javascript">
. r) d! d6 I% c6 g7 j: ^ runslideshow(); @% q) T: S- L! z8 N
</script>
{* x% `; [% W5 X' S! ?/ ]
; p: C! M! A- S- A& x# I7 h7 ^" H- g+ i/ c! H# ^- @
改成
/ @6 h- Z: {& n. [7 `: `& K$ D6 Q/ |8 {
<div class="module cl slidebox">
" ^8 {/ B; R' _6 w7 B: i <ul class="slideshow">( ^7 U! b. j3 r$ l! N- m" ^& ^% V
[loop]5 S( k# N% o4 a2 \! K8 x
<li style="max-width: {picwidth}px; max-height: {picheight}px; text-align:center"><a href="{url}"{target}><img src="{pic}" max-width=" {picwidth}" max-height="{picheight}" height="{picheight}"/></a><span class="title">{title}</span></li># f0 p4 ^9 e8 ?
[/loop]
1 }5 I5 D# c9 L, A/ h& A1 O" g5 b% a </ul>
8 c6 K- u- i# N) M- ] K0 L</div>
; d7 e) r) \+ C8 Z6 }: `+ C<script type="text/javascript">3 Q5 e5 f$ U! x4 |8 d
runslideshow();* f! h$ o# c7 I: D5 F
</script>
, p& t* Q; B( f" s1 c" Q5 C3 e0 m7 s& |, Q" ]; o
|