【发布时间】:2012-04-17 14:15:14
【问题描述】:
我正在尝试使用 zen 编码从文件名列表中创建一个 img 标记的大型列表,以用我的文件名列表填充 src 属性。
这是我拥有的以及我想用它做什么:
filenameA.jpg
someotherone.jpg
anotherimage.jpg
sample.jpg
Zen 编码结果:
<img src="images/filenameA.jpg" />
<img src="images/someotherone.jpg" />
<img src="images/anotherimage.jpg" />
<img src="images/sample.jpg" />
我尝试用缩写来包装列表:img[src=]
但我不知道正确的方法。
感谢您的帮助:)
【问题讨论】: