tid=65920& 本帖最後由 IT_man 於 2017-8-19 21:30 編輯 5 j3 U& s; G; z$ w
6 j1 T: \9 T! {DIY調用圖片、幻燈片縮放比例圖片變形修正2 K% I9 v+ D9 O# p q; p6 K
, S1 Q E8 b# C6 ]' Q打開調用模版,原本我的調用模版是:$ u' C8 z0 ~- A
( R v G4 v- t- P2 n
<div class="module cl slidebox">
7 c& a3 F4 z( I3 a) a <ul class="slideshow">
, A" O, p' O) G. c' [8 ^$ W [loop]) K% H' J) w9 Z
<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>8 H' M2 Y+ D9 O! h: K
[/loop]" n. Y, i* }& B$ U! d# | E! v
</ul># O& M6 U' @5 S# c/ |: c) h& V4 e
</div>. J4 ]. q' [% i. U
<script type="text/javascript">( b& D$ o2 Y% m! c
runslideshow();
) S- Q0 H7 `/ Z- V</script>3 Y- D. g4 Q P' I( T% E }% u8 Z6 l: Z
% \5 p5 u! e6 C- R" e& k$ j
7 K6 O+ b; x9 p9 d8 e% ^5 e( a改成6 I2 W# j5 O& P% }+ `- P" Y
( ~3 U1 f8 l& {5 Q' W<div class="module cl slidebox"> B7 E6 c% i# u+ M3 z) f! [
<ul class="slideshow">
8 a* r" p$ [3 x( n4 e C [loop]3 Z% M9 e7 [1 `/ G L
<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>
5 t: O- {6 U0 o8 w% { [/loop]
8 R6 }' |) C* Y </ul>5 Y( T1 b A1 O, a% Q7 C4 [( K4 m
</div>
4 s7 Z" h! d$ N- @6 q: Q; j/ H' i0 o<script type="text/javascript">7 M& T1 O5 Y, [# w: B% z
runslideshow();
2 J+ {( L; i( A: ]: P</script>
4 ]) n! j- g9 f, |. t- U+ B/ r& N: l1 L7 o- u* o7 \
|