在asp.net中使用iframe的问题 [英] problem using iframe in asp.net

查看:143
本文介绍了在asp.net中使用iframe的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有以下代码

Hi I have the following code

<iframe src="http://www.w3schools.com" width="100%"></iframe>
<iframe src="http://www.google.com" width="100%"></iframe>





当我在浏览器中运行它时,第一个iframe工作正常,但第二个不显示网页。我尝试过其他链接,比如yahoo或者instagram或者twitter,但结果是空的ifram。



when i run it in the browser the first iframe works fine but the second doesn't show the webpage. i tried other links like yahoo or instagram or twitter, but have the same result empty ifram.

推荐答案

d浏览器窗口的宽度被认为是100%。第一个iFrame本身消耗全宽。所以第二个I帧被隐藏了。两者的宽度均为50%。或者,在diffft rows(element)中添加这些I帧。
Width of d browser window is considered as 100%. First iFrame itself consume full width. So second I frame is getting hidden. Make width 50% for both. Or else, add these I frames in difft rows ( element).


这篇关于在asp.net中使用iframe的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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