做一个全屏的浏览器请教一下大家
做一个全屏的浏览器,只显示网页内容,其他的都不允许显示,请问需要调用什么库,我们用的是firefox浏览器,谢谢大家
[解决办法]
你说用浏览器 直接把命令行 传入到 浏览器里就好了
[解决办法]
Firefox 命令行参数
2008-12-21 16:02
说明:所有适用于 Firefox 的参数均可直接在MyFirefox设置窗口的“命令行参数”中添加或者加在 MyFirefox 的快捷方式目标路径后面,或者写入MyFirefox.ini文件中,这些参数会被传递给 Firefox。
如何使用命令行参数
以下是启动Firefox时打开mozilla firefox网站的例子:
方法1:在开始菜单的”运行“中输入:firefox -url www.mozilla.com
对绿色版、免安装版或便携版则需加路径,如:D:\Program Files\Mozilla Firefox\Firefox\firefox.exe -url www.mozilla.com
方法2:在程序的快捷方式的 属性-目标 的后面加上参数:
比如目标是:”D:\Program Files\Mozilla Firefox\Firefox\firefox.exe“
则在它后面加上参数(参数前有个空格):”D:\Program Files\Mozilla Firefox\Firefox\firefox.exe“ -url www.mozilla.com
常用命令行参数:
用户配置
说明:Firefox的设置、书签等数据都保存在所谓的配置(profile)文件夹中。不同用户可自定义配置。
如果您使用 MyFirefox,则以下与用户配置文件有关的参数基本没什么用,MyFirefox 本身就是用来自定义配置文件夹的。
-CreateProfile profile_name
新建名为 profile_name 的配置,但不启动程序。profile_name 中不能包含空格( )。
firefox -CreateProfile JoelUser
-CreateProfile "profile_name profile_dir"
在 profile_dir 目录下新建名为 profile_name 的配置,但不启动程序。注意 profile_name 和 profile_dir 要在同一对引号内。
注意: profile_dir 不能是已经存在的路径, profile_name 也不能是已经存在的配置。
firefox -CreateProfile "JoelUser c:\internet\moz-profile"
-ProfileManager or -P
启动配置管理器。
-P "profile_name"
跳过配置管理器直接用 profile_name 配置启动程序。对多配置有用。注意 profile_name 区分大小写。
firefox -P "Joel User"
-profile "/path/to/profile"
用所给的配置启动。
-no-remote
允许多个程序同时运行,可实现多个版本、配置的Firefox同时运行。
firefox -no-remote -P "Another Profile"
-migration
启动导入向导。
-override /path/to/override.ini
载入指定的 override.ini 文件用以覆盖 application.ini (browser/app/application.ini )。 载入以下内容的 override.ini 文件可以避免启动时出现转移向导。
[XRE]
EnableProfileMigrator=0
浏览器
-browser
启动浏览器组件。
-url URL
用浏览器打开网址。 -url 可以省略。
firefox www.mozilla.com
-new-tab URL
在新标签页中打开网址。
-new-window URL
在新标签页或新窗口中打开网址,取决于浏览器设置。
-search term
用您的默认搜索引擎搜索。
-preferences
打开选项/设置窗口。
-setDefaultBrowser
将 Firefox 设为默认浏览器。
其它组件
-jsconsole
启动错误控制台。
-inspector URL
启动 DOM Inspector 并检查所给的网址(网址为可选项)。
-venkman
启动 JavaScript 调试,不知道怎么用。
Chrome
-chrome chrome_URL
加载指定的 chrome(chrome 怎么翻译都觉得怪怪的,就叫它 chrome 吧)。
firefox -chrome chrome://inspector/content
-register chrome_URL
注册指定的 chrome 但不启动程序。
扩展
-install-global-extension /path/to/extension
在程序目录内安装插件。参数是指插件的路径。安装必须有管理员权限。
-install-global-theme /path/to/theme
同上,但用于主题。安装必须有管理员权限。
-safe-mode
安全模式,禁止所有插件。
区域设置
-UILocale locale
启动区域资源用户界面。
firefox -UILocale en-US
-contentLocale locale
Start with locale resources as content Locale.
firefox -contentLocale en-US
其它
-console
启动调试控制台。
-h or -help or -?
打印所有的命令行参数列表。
-v or -version
打印程序版本。
-osint
告诉程序它是被操作系统启动的。
-requestPending
告诉程序将使用 Windows DDE 打开网址。
[解决办法]
Use wxWebConnect
做一个全屏的浏览器请问一下大家
做一个全屏的浏览器请教一下大家做一个全屏的浏览器,只显示网页内容,其他的都不允许显示,请问需要调用什么
