imagedata
src
的值,那么它永远也是调用第一张图片的地址,显示的都是第一张图片。
imagedata
src的方法:
用变量个体的索引来改变两个属性的名字,
变量个体的索引格式为“变量名字_index”,见下面红色加粗字体部分。
<#list images as im>
<
w:pict
>
<
v:shapetype
id
=
"_x0000_t75"
coordsize
=
"21600,21600"
o:spt
=
"75"
o:preferrelative
=
"t"
path
=
"m@4@5l@4@11@9@11@9@5xe"
filled
=
"f"
stroked
=
"f"
>
<
v:stroke
joinstyle
=
"miter"
/>
<
v:formulas
>
<
v:f
eqn
=
"if lineDrawn pixelLineWidth 0"
/>
<
v:f
eqn
=
"sum @0 1 0"
/>
<
v:f
eqn
=
"sum 0 0 @1"
/>
<
v:f
eqn
=
"prod @2 1 2"
/>
<
v:f
eqn
=
"prod @3 21600 pixelWidth"
/>
<
v:f
eqn
=
"prod @3 21600 pixelHeight"
/>
<
v:f
eqn
=
"sum @0 0 1"
/>
<
v:f
eqn
=
"prod @6 1 2"
/>
<
v:f
eqn
=
"prod @7 21600 pixelWidth"
/>
<
v:f
eqn
=
"sum @8 21600 0"
/>
<
v:f
eqn
=
"prod @7 21600 pixelHeight"
/>
<
v:f
eqn
=
"sum @10 21600 0"
/>
</
v:formulas
>
<
v:path
o:extrusionok
=
"f"
gradientshapeok
=
"t"
o:connecttype
=
"rect"
/>
<
o:lock
v:ext
=
"edit"
aspectratio
=
"t"
/>
</
v:shapetype
>
<
w:binData
w:name
=
"${"
wordml://0200000"+im_index+1+".jpg"}"
xml:space
=
"preserve"
>${im}</
w:binData
>
<
v:shape
id
=
"图片"
o:spid
=
"_x0000_i1025"
type
=
"#_x0000_t75"
style
=
"width:414.75pt;height:207.75pt;visibility:visible;mso-wrap-style:square"
>
<
v:imagedata
src
=
"${"
wordml://0200000"+im_index+1+".jpg"}"
o:title
=
"菜单"
/>
</
v:shape
>
</
w:pict
>
</#list>
参考资料: