【发布时间】:2013-06-04 11:36:30
【问题描述】:
我在网站中有这段代码
<iframe src="" name="" width="" height="">
<html>
<head>
<meta property="og:title" content="Title" />
<meta property="og:type" content="website" />
<meta property="og:description" content="This Is The Description Section" />
</head>
<body>
<div id="fb-root"></div>
<script> (function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "";
fjs.parentNode.insertBefore(js, fjs);
} (document, 'script', 'facebook-jssdk'));</script>
<div class="fb-comments" data-href="@Request.Url" data-width="300" data-num-posts="3"></div>
</body>
</html>
</iframe>
这段代码不起作用,但我不知道为什么?谁能帮帮我?
【问题讨论】:
-
你的意图是什么?那不是应该如何使用 iframe
-
定义“不工作”?你期望会发生什么? iframe 不能直接包含内容,请将
src属性设置为您提供内容的 URL。 -
我想在这个 iframe 中使用 facebook cmets
-
我想在 iframe 中编写 html,因为我想更改它的内容
-
你为什么不把你的
src指向一个你想做的asp页面?!
标签: asp.net asp.net-mvc iframe