Android Phonegap应用程序位置固定菜单
我正在开发一个移动应用程序,我有一个固定的页脚菜单Android Phonegap应用程序位置固定菜单,android,css,cordova,Android,Css,Cordova,我正在开发一个移动应用程序,我有一个固定的页脚菜单 <div id='footer'> <ul class='menu'> <li>menu1</li> <li>menu2</li> </ul> </div> #footer { height:99px; background:url(../images/black2.png)repeat-x; b
<div id='footer'>
<ul class='menu'>
<li>menu1</li>
<li>menu2</li>
</ul>
</div>
#footer { height:99px; background:url(../images/black2.png)repeat-x; border-top: 1px solid black; position:fixed;bottom:0;width:100%;}
.menu { max-width:640px; margin:auto; }
我会这样做: HTML
<div class="footer">
<ul>
<li>menu1</li>
<li>menu2</li>
</ul>
</div>
最重要的是,我要告诉您检查fixed Group的“fixed fixed”插件(这有助于移动固定定位,因为所有手机/平板电脑都不支持它): 最重要的是,我推荐他们构建移动应用程序的整个工作流程:
你有没有写过关于方向改变事件的东西?我没有。其他一切都是应该的。只有固定页脚是个问题。如果我移除固定位置,它就会工作。但我需要它被修好。我该怎么办?谢谢:)太好了..自己解决这个问题做得很好..)
<div class="footer">
<ul>
<li>menu1</li>
<li>menu2</li>
</ul>
</div>
.footer { background: black; position: fixed; bottom: 0; width: 100%; text-align: center; }
.footer ul { color: white; width: 90%; margin: 0 auto; display: block; list-style: none; }
.footer ul li { padding: .25em; display: block; }