我在ColdFusion应用程序的页面中使用HTML5-Reset。 head标签如下所示:
<head id="swipeapp" data-template-set="html5-reset">
页面中还有<cfform>
。浏览器忽略data-template-set
和id
并在浏览器本身上打印内容。我发现这是因为<cfforms>
并且发现添加<cfcontent type="text/html; charset=utf-8">
解决了这个问题。
通过此更改,该页面适用于Chrome和Firefox,但html5-reset也会被删除。对齐和样式在IE 7和8中进行了折腾。
是否有任何工作要保持html5-reset
并使用cfforms
?