本帖最後由 IT_man 於 2017-8-19 21:30 編輯
# K5 [+ e: `( {4 _# C, Q
# v) W0 O7 E# ^( K5 NDIY調用圖片、幻燈片縮放比例圖片變形修正9 Q+ \2 i/ A% n& C* ^8 R
# R1 O7 q3 L0 l! {
打開調用模版,原本我的調用模版是:4 l( {$ j& P. P, v
7 }& t5 L+ o# q$ F+ n8 R- p2 G% D
<div class="module cl slidebox">
" `8 O6 [7 I! ~6 z( M <ul class="slideshow"> N6 M/ r3 H2 h( A
[loop]/ R- P# ?7 H3 N/ D6 R, o
<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>
; {: A( C& T9 d& T [/loop]
% `) V$ o! q) S$ H. u8 M. b% Q </ul># i9 i& D) C% Q9 U5 A3 b
</div>
! y# m5 l! \( L' F3 z<script type="text/javascript">( x8 t; r" x6 Y7 n f( e
runslideshow();
6 p" Q4 Y7 F' w</script>
6 G8 @ m$ W- t8 K Z$ s/ ]4 X1 I/ a9 V1 C
8 Q2 h( }5 z$ O
改成0 A' h0 @* A6 K- |# J& x) a4 Z
5 T! g8 k r, B3 z/ `2 n/ J+ \
<div class="module cl slidebox">8 k8 \" W+ O4 d; X' X0 F
<ul class="slideshow">6 j' ?2 Y) B$ ?9 k
[loop]
4 c3 d8 J( v* |) | X& Q8 m <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>* D" h$ I7 }. i) Y7 y8 X4 q5 J
[/loop]1 v7 V2 A. ^( i9 j
</ul>
6 {, \/ M( D4 c</div>0 X9 l% a; O3 N/ b% |6 u
<script type="text/javascript">. \% m$ C0 [8 j. `7 D% F" G, [8 O3 x
runslideshow();
+ W( K8 W2 M0 r8 K# L2 _7 y& Q [/ O8 s</script>
& |& }. Q* `4 H. f& B5 D! e
" r+ Z8 m7 Z; o; m! D |
|