Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 有角度的Iframe_Angular_Iframe - Fatal编程技术网

Angular 有角度的Iframe

Angular 有角度的Iframe,angular,iframe,Angular,Iframe,我只是尝试在我的angular应用程序中包含一个iframe。 但是Iframe看起来非常小,就像在这个例子中: 如何在整个页面上实现iframe 代码: 这是因为您的iframe设置为使用100%高度,但html和body元素具有未定义的高度。找到父HTML和BODY标记,并将高度设置为100%。这将解决您的问题 <iframe src="here is the link" style="border:0px #ffffff none;"

我只是尝试在我的angular应用程序中包含一个iframe。 但是Iframe看起来非常小,就像在这个例子中:

如何在整个页面上实现iframe

代码:


这是因为您的
iframe
设置为使用100%高度,但html和body元素具有
未定义的高度。找到父
HTML
BODY
标记,并将高度设置为100%。这将解决您的问题

<iframe src="here is the link" style="border:0px #ffffff none;" 
    name="name" scrolling="no" frameborder="0" 
    marginheight="0px" margin- width="0px" height="100%" width="100%" allowfullscreen>
</iframe>