在 html 中插入 iframe


Inserting iframe inside html

我的索引中有这段代码.php页面:

$page->html .= "    ";

我想在" "中放置一个iframe以正确显示,但是我已经尝试了几种方法,但它不起作用。你可以帮我吗?我试过这个:

$page->html .= "<Iframe src="/shoutcast20/index.php" width="670" height="389" frameborder="0"></Iframe> ";

第一个解决方案

$page->html .= '<Iframe src="/shoutcast20/index.php" width="670" height="389" frameborder="0"></Iframe> ';

第二种解决方案:

$page->html .= "<Iframe src='"/shoutcast20/index.php'" width='"670'" height='"389'" frameborder='"0'"></Iframe> ";

^^尝试您需要在引号前加上反斜杠或将双 qoute 更改为单 qoute