在我使用firebug中的编辑按钮之前,内容不会出现在iframe中

Dav*_*ici 5 html javascript css iframe jquery

它让我疯狂的FF.我在Chrome中尝试了同一页面,内容立即显示.

我有一个从另一个页面加载图表的iframe.

问题是,在我检查元素并单击编辑元素按钮之前,图表不会出现.一旦我在html代码中的src属性之后添加空格(为了更好地理解,请参见下文),图表将立即显示.

使用的图是jqPlot

之前

<iframe src="http://localhost:4501/mainpage/graph.aspx"></iframe>
Run Code Online (Sandbox Code Playgroud)

<iframe src="http://localhost:4501/mainpage/graph.aspx" ></iframe>
Run Code Online (Sandbox Code Playgroud)

图片在这里.

alt text http://img294.imageshack.us/img294/252/crazything.jpg

Val*_*Val 2

<iframe src="#" onload="this.src='http://localhost:4501/mainpage/graph.aspx'">No Ifrmae allowed</iframe>
Run Code Online (Sandbox Code Playgroud)

我不知道为什么会这样,这可能是你电脑上的某个东西......但是试一试。顺便说一句,如果您收到“不允许使用 iframe”的信息,则可能是您的 ff 已禁用 iframe。你已经提到它显示了框架,但存在加载问题...然后检查你的萤火虫...在 NET 选项卡上“ http://localhost:4501/mainpage/graph.aspx ”已成功加载。