我必须从ajax查询中呈现以下html标记。问题是cfml将任何以#为前缀的字符串视为标识符。所以我得到了一个错误。
<cfoutput>
<table style="display:none;" width="100%" border="1" cellpadding="2" cellspacing="0">
<tr>
<td width="43%" bgcolor="#649DCA"><strong>Class</strong></td>
<td width="20%" bgcolor="#649DCA"><strong>Site</strong></td>
<td width="47%" bgcolor="#649DCA"><strong>Date/Time</strong></td>
</tr>
</cfoutput>发布于 2012-08-01 22:13:59
你只需要把你的#加倍即可。
<td width="43%" bgcolor="##649DCA"><strong>Class</strong></td>就我个人而言,我可能只会分别使用CSS和样式表。
https://stackoverflow.com/questions/11761137
复制相似问题