所有页面的通用页脚 [英] Common Footer for all Pages
问题描述
在我的JQM项目中,我可以从页脚访问几个页面.
In my JQM project I have several pages accessible from the footer.
但是我为每个data-role="page"
我都需要包含页脚标记的概念而苦苦挣扎.
However I'm struggling with the concept that for each data-role="page"
I need to include the footer markup.
是否没有办法为整个应用程序指定一次页脚并将按钮ui-btn-active
设置为我自动进入的页面?
Isn't there a way I can specify the footer once for the entire application and have the buttons ui-btn-active
set to the page I am on automatically?
推荐答案
You can take a look at persistent footers, but you will have to write the code for the footers in every page. With class ui-btn-active
you can set the active page.
您是否正在使用任何移动框架?其中一些允许您在公共位置指定html代码并将其包含在每个页面中.例如, Rhomobile .
Are you using any mobile framework? Some of them allow you to specify the html code in a common place and include it in every page. For example, Rhomobile.
这篇关于所有页面的通用页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!