tid=65920& 本帖最後由 IT_man 於 2017-8-19 21:30 編輯
- G- N- G+ b5 G
- h, P- [* |3 h0 h2 f) i1 L: N# rDIY調用圖片、幻燈片縮放比例圖片變形修正
& d- T6 O& R; I7 @5 Y# u; ~: V- f
& D: |' R* e; P6 v打開調用模版,原本我的調用模版是:3 o+ l; t9 y! M, |) m6 h0 F
* u; `( I2 U. C2 \( d6 o<div class="module cl slidebox">
: J" b, @2 |; O# b; o* G <ul class="slideshow">
# h% R" f) e, s9 Q1 y) D0 ~6 k [loop]1 a D5 t+ M5 B
<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>
- d& D' b/ X$ k k [/loop]* z; E7 [' }2 c- G( \" _3 f0 b3 B
</ul>
9 q2 G8 B( X. Q c5 J</div>* w4 Y4 |4 L# z7 U3 f
<script type="text/javascript">
" y9 F1 U4 Y$ k: ^1 g1 I6 U runslideshow();# V# G( K8 }- I# V& {( F" Y9 Z' I
</script>4 m) e0 X: d$ {5 g% L$ a
' I7 {0 D1 H% \0 v& N$ D
- S3 C i! i# @8 n
改成
- I4 x: b2 C: X5 n& c) w! q4 b a
4 h% H2 W3 t6 T3 v( r, p2 q<div class="module cl slidebox">
1 `# j/ P0 { p2 e6 G <ul class="slideshow">
, z4 W5 {4 m) j% T [loop]
! Q/ A0 w5 p# b" B% s$ r# ~2 n4 s <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>
1 i- g- ]$ S3 d2 B# F [/loop]
# Q9 O9 }& G: D* `) B! ^* W' J </ul>* g, D+ R' D8 q! l% h$ `
</div>+ W, f' q8 Y2 K
<script type="text/javascript">! m4 P& t% L" I4 X
runslideshow();7 N* L$ G1 L( k
</script>
+ m+ n* G* O" ^* f, A2 g' f( t- _3 L. M
|