【发布时间】:2011-01-24 20:10:12
【问题描述】:
有趣的是 jpg 图像会显示,但 gif 图像不会。为什么?
<cfform name="theForm" action="" format="flash" skin="haloorange" height="1450" width="850">
<cfformgroup type="tile" style="horizontalGap:5; verticalGap:10; horizontalAlign:center; verticalAlign:middle;">
<cfoutput query="qryImg">
<cfformgroup type="vdividedbox" >
<cfformitem type="html" height="230" width="134" >
#name#<br/>
<img src="thumbs/#qryImg.name#" height="92"/><br/>
<cfinput name="del#currentRow#" type="checkbox" label="Delete #name#" width="100" align="middle">
</cfformitem>
</cfformgroup>
</cfoutput>
</cfformgroup>
</cfform>
【问题讨论】:
-
您需要提供更多信息。生成的表单源实际上是什么样的?您能否将问题简化为一个可以工作的 jpeg 和一个不能工作的 gif 图像标签?
-
ColdFusion 为 flash cfform 动态创建一个 swf 文件。如果我删除 format="flash" skin="haloorange" 并放入 format="html" 然后我可以看到 gif 文件。它与 format="flash" 有关。
-
另外,如果我使用
#name# 我可以看到所有的图像 -
请停止使用 Flash Form...coldfusionjedi.com/index.cfm/2010/8/19/…
-
我不太愿意推荐它,但如果 Flash 表单是必需的,那么使用 cfinput type="image" 怎么样?听起来底层的 flex img 支持可能参差不齐。即使在以后的版本中stackoverflow.com/questions/258418/…
标签: coldfusion cfform