MozTW 討論區
https://forum.moztw.org/

xulrunner 與 iframe 的問題
https://forum.moztw.org/viewtopic.php?f=18&t=25531
1 頁 (共 1 頁)

發表人:  kenshinn [ 2008-12-22, 13:51 ]
文章主題 :  xulrunner 與 iframe 的問題

在使用 xulrunner 執行程式時,遇到奇怪的問題
程式如下:
代碼:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window
       id="test-window"
       title="Find Files"
       width="480"
       height="800"
       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
       xmlns:html="http://www.w3.org/1999/xhtml">
<iframe src="http://tw.yahoo.com" width="400" height="600"/>
</window>


當我使用 xulrunner 來執行時,卻變成下面的畫面
頁面中的 noscript 標籤變成顯示原始碼了

圖檔

有人知道是為什麼嗎?

下面是我的簡易原始碼:
xulIframeTest.tar.gz
解開後,執行 xulrunner application.ini

ps: 我的 xulrunner 是Mozilla XULRunner 1.9.0.5 - 2008121621

發表人:  kenshinn [ 2008-12-22, 15:05 ]
文章主題 : 

我找到解法了,將 iframe 設定 type="content"
就可以了
可是產生另一個問題
設定了 type="content" 的 iframe
沒有辦法放其他元素蓋在其上面

1 頁 (共 1 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/