As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center作为指导。
                            
                        
                    
                
                                7年前关闭。
            
                    
我将使用PhoneGap开发一个应用程序,该应用程序将在每个Web视图顶部包含图标形式的主页和设置按钮,如android中的操作栏菜单。我正在使用ThemeRoller(CSS)的JQuery Mobile生成模板。谁能提供一些示例建议?

此处的示例:http://dl.dropbox.com/u/72519118/ThemeRoller.png

最佳答案

<div data-role="page" id="homepage" data-theme="a">

</div>

<div data-role="page" id="secondpage" data-theme="a">
    <div data-role="header">
        <a href="#homepage">Home</a>
        <h1>Edit Contact</h1>
        <a href="#settings" data-icon="gear">Settings</a>
    </div>
</div>


<div data-role="page" id="settings" data-theme="a">
<div data-role="header">
    <a href="#homepage">Home</a>
</div>
</div>


如果要使用Jquery Mobile创建主页按钮,只需执行以下操作即可:)

将带有文本“ home”的链接放在所需的位置,然后可以根据需要随意设置其样式:)

关于jquery-ui - 如何将主页/设置按钮添加到PhoneGap(webview),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13920399/

10-12 05:20