Jquery mobile,页脚不会随着 <data-position ="fixed"> 向下移动

标签 jquery html css mobile

我试图放下页脚,但它似乎不适用于下面提供的代码。 我还删除了css文件中的所有标准文本,以确保与我的问题没有任何联系。 它通常应该向下移动

<div data-role="footer" data-position="fixed">
            <h5>Test</h5>
</div>

对吗?

这是我的index.html的完整代码

<!DOCTYPE html>

<html>
    <head>
        <meta charset="utf-8" />
        <meta name="format-detection" content="telephone=no" />
        <!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
        <link rel="stylesheet" type="text/css" href="css/index.css" />
        <link href="jquerymobile/jquery.mobile-1.4.5.min.css"rel="stylesheet" type="text/css"/>
        <scrip src="js/jquery.js"type="text/javascript"></scrip>
        <script src="jquerymobile/jquery.mobile-1.4.5.min.js"type="text/javascript"></script>
        <title>Hello World</title>
</head>
   <body>
    <div data-role="page" id ="home">
        <div data-role="header">
            <h1>Your Resource App</h1>
        </div>
        <div data-role="footer" data-position="fixed">
            <h5>Test</h5>
        </div>

    </div>
        <script type="text/javascript" src="cordova.js"></script>
        <script type="text/javascript" src="js/index.js"></script>
        <script type="text/javascript">
            app.initialize();
        </script>
   </body>

</html>

最佳答案

没关系我忘了这里写脚本xD

关于Jquery mobile,页脚不会随着 <data-position ="fixed"> 向下移动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32196737/

相关文章:

html - html、css、bootstrap 中的 2 或 3 行边框

css - 等效于过滤器 :Glow(Color=#000000, strength=2);火狐浏览器

javascript - 单击移动网站中的链接应打开 whatsapp 应用程序

html - 当文本输入获得焦点时,将光标移动到底部

javascript - 您是否将 jQuery、extJS 或其他 JavaScript 库与 Actionscript 和 Flex 一起使用?

jquery - 脱离控制但保留 map 上的图层

javascript - 如果 id 基于函数参数之一,如何访问 jquery 中的元素?

javascript - 在 contenteditable div 中插入图像

html - Facebook 时间线宽度不会改变

html - 将类链接设置为不同的颜色 (CSS/HTML)