gpt4 book ai didi

javascript - Jquery Mobile Navbars 填充错误 : Too Narrow

转载 作者:行者123 更新时间:2023-11-30 18:29:25 25 4
gpt4 key购买 nike

问题:

我的导航栏看起来一点都不像 http://jquerymobile.com/test/docs/toolbars/footer-persist-a.html 中示例中的导航栏

我做错了什么/有什么不同?

JS fiddle : http://jsfiddle.net/OpnSrce/dUcUF/

代码:

<!DOCTYPE HTML>
<html>
<head>
<meta charset = "utf-8">
<meta name = "viewport" content = "width=device-width, initial-scale=1">
<title>AD&amp;D Spellbook</title>
<style>
@import url('http://code.jquery.com/mobile/1.1.0-rc.2/jquery.mobile-1.1.0-rc.2.min.css');
</style>
<script src = "http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src = "http://code.jquery.com/mobile/1.1.0-rc.2/jquery.mobile-1.1.0-rc.2.min.js"></script>
</head>

<body>
<div data-role = "page" data-theme = "b">
<div data-role = "header" data-position = "fixed" data-theme = "b">
</div>
<div data-role = "content" data-theme = "b">

</div>
<div data-role = "footer" data-position = "fixed" data-theme = "b">
<div data-role = "navbar">
<ul>
<li>All Spells</li>
<li>Memorized Spells</li>
<li>Known Spells</li>
</ul>
</div>
</div>
</div>
</body>
</html>

最佳答案

好的,我更改了我的答案,第一个版本是错误的。你缺的是<a>页脚中的标记。

<div data-role="navbar">
<ul>
<li><a href="">All Spells</a></li>
<li><a href="">Memorized Spells</a></li>
<li><a href="">Known Spells</a></li>
</ul>
</div>

关于javascript - Jquery Mobile Navbars 填充错误 : Too Narrow,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10056308/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com