我试图放下页脚,但它似乎不适用于下面提供的代码。 我还删除了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/