IFRAME之后的行不可见 [英] line after IFRAME is not visible

查看:112
本文介绍了IFRAME之后的行不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IFRAME之后的行在IE和FF中都不可见。参考下面的代码,让我知道我是否做错了什么。

 < html> 
< body>在iframe之前的
行< br />
< iframe src =about:blank/>
< br /> iframe之后的行
< / body>
< / html>


解决方案

您需要关闭iframe标记。如果iframe不被支持的话,它会被认为是显示内容。



(顺便说一句,我想如果你使用XHTML来编写< ; iframe ... />然后IE将把它作为HTML代替,IE不能理解XHTML是XHTML,它理解为HTML。)


line after IFRAME is not visible in both IE and FF. refer the below code and let me know whether I am doing anything wrong.

<html>
<body>
line before iframe <br />
<iframe src="about:blank" />
<br /> line after iframe
</body>
</html>

解决方案

you need to close the iframe tag. otherwise the content that comes after it is considered "things to show" when iframe is not supported.

(by the way, i think if you use XHTML to write the <iframe ... /> then IE will take it as HTML instead. IE doesn't understand XHTML as XHTML. It understands it as HTML.)

这篇关于IFRAME之后的行不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆