iframe不能显示内容的问题
2016-02-27 12:31
483 查看
当你遇到网页中嵌入iframe内容却不能显示的时候,请试下以下的方法
1.iframe格式将src放到最后
<iframe width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0" id="PlayFrame" name="PlayFrame" src="URL地址"></iframe>
2.当你是在代码隐藏页中写src时
先在html中把<iframe width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0" id="PlayFrame" name="PlayFrame" ></iframe>写上,
然后再代码隐藏页中添加 PlayFrame.Attributes.Add("src", URL地址)属性;
1.iframe格式将src放到最后
<iframe width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0" id="PlayFrame" name="PlayFrame" src="URL地址"></iframe>
2.当你是在代码隐藏页中写src时
先在html中把<iframe width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0" id="PlayFrame" name="PlayFrame" ></iframe>写上,
然后再代码隐藏页中添加 PlayFrame.Attributes.Add("src", URL地址)属性;
相关文章推荐
- sass玩转颜色总结笔记
- what does Html.HiddenFor () for ?
- ox69a8674c指定应用的0x00000000内存不能为"read"
- centos的PHP编译安装模块的基本步骤
- 服务器集群session共享方案
- mysql中间件研究(Atlas,cobar,TDDL)
- 打开QQ空间的默认浏览器被改了怎么办
- 蓝桥杯 题目标题: 排它平方数 最新真题
- 泛型:两个数字相加
- mysql变量使用总结
- Python collections.defaultdict() 与 dict的使用和区别
- Knapsack problem (FZU_2214,福建省第六届ACM-problemC) 01背包+初始化问题+渐缩问题
- K中心点
- sql查询重复记录
- ubuntu配置NFS,挂载开发板
- net share命令删除共享
- Objective—C通讯录简单编程(源码)
- 问题: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no
- 条件概率和Bayes法则(Bayes' rule)
- 编译安装mysql ERROR: 1 Can't create/write to file '/tmp/#sql_86b_0.MYI'