首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >在超文本标记语言中使用<Iframe>标记时网页不显示

在超文本标记语言中使用<Iframe>标记时网页不显示
EN

Stack Overflow用户
提问于 2018-06-03 04:09:35
回答 1查看 52关注 0票数 -1

在html中插入以下内容时,网页不会显示。这对任何其他链接都不起作用。请告诉我这里面有什么问题?

代码语言:javascript
复制
<!DOCTYPE html>
<html>
<body>

<h2>HTML Iframes</h2>
<p>You can also use the CSS height and width properties to specify the size of the iframe:</p>

<iframe src="https://www.w3schools.com"  style="height:500px;width:900px"></iframe>

</body>
</html>
EN

回答 1

Stack Overflow用户

发布于 2018-06-03 04:32:52

不需要有style属性。

代码语言:javascript
复制
<iframe height="500px" width="800px" src="https://www.google.com" ></iframe>

这应该可以解决这个问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50660764

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档