HTML编辑器内容代码太长无法显示的问题
2009-10-29 11:21
405 查看
这是一个常用的HMTL编辑器的错误调用形式:
<iframe id="myiframe" src="Editor/editor.htm?id=content&ReadCookie=0" frameborder="0" scrolling="no" width="650" height="460"></iframe>
<input type="hidden" name="content" value="<%=Server.HTMLEncode(rs("content"))%>">
有些源代码调用HTML编辑器喜欢把iframe放在input之前,当网速慢或通过域名访问时就会经常出现HTML编辑器所见即所得模式显示不出内容,JS提示错误。其实是常识性的错误,应该先让input将大量的代码读完后,再用iframe调用。
正确形式:
<input type="hidden" name="content" value="<%=Server.HTMLEncode(rs("content"))%>">
<iframe id="myiframe" src="Editor/editor.htm?id=content&ReadCookie=0" frameborder="0" scrolling="no" width="650" height="460"></iframe>
<iframe id="myiframe" src="Editor/editor.htm?id=content&ReadCookie=0" frameborder="0" scrolling="no" width="650" height="460"></iframe>
<input type="hidden" name="content" value="<%=Server.HTMLEncode(rs("content"))%>">
有些源代码调用HTML编辑器喜欢把iframe放在input之前,当网速慢或通过域名访问时就会经常出现HTML编辑器所见即所得模式显示不出内容,JS提示错误。其实是常识性的错误,应该先让input将大量的代码读完后,再用iframe调用。
正确形式:
<input type="hidden" name="content" value="<%=Server.HTMLEncode(rs("content"))%>">
<iframe id="myiframe" src="Editor/editor.htm?id=content&ReadCookie=0" frameborder="0" scrolling="no" width="650" height="460"></iframe>
相关文章推荐
- html内textarea嵌套ckeditor编辑器,文本框无法显示值的问题解决
- 编辑器生成的html代码再显示的样式冲突问题
- 黄聪:wordpress向mysql字段中保存html代码(使用add_option()方法),然后无法显示出问题
- struts2标签遍历时,显示内容忽略<html>代码问题
- 关于从后台向前台传递html代码在前台无法显示的问题
- jQuery html()方法使用不了无法显示内容的问题
- 在html的input文本输入框中,无法正确显示单引号和双引号的问题
- CHM 文件无法显示内容的问题
- 再谈联合查询注入字段间编码不同无法显示内容问题
- 内容里面带标签,在HTML显示问题,JSTL
- android webview显示html代码出现乱码的问题解决
- 问题2:解决直接输出数组的内容无法显示中文的问题
- dedecms V5.7笔记:文章页和内容页的分页代码判断 只显示前后几页的办法 与getjson在ie下无法刷新的简便方法
- html表格内容为空时不显示边框的问题
- xampp服务器 无法解读html中的php代码 (配置问题)
- django[模板标签]django模板变量直接显示html代码的有关问题
- android webView 无法播放视频,无法暂停,继续播放视频问题,无法根据浏览器居中显示内容问题
- 调用discuz编辑器发布帖子显示html代码的解决办法
- html中div内容无法置顶问题和html的下载问题
- 解决IE新开窗口无法显示内容的问题