gpt4 book ai didi

jquery-mobile - 数据主题设置为页面不适用于 jquerymobile 的页眉和页脚

转载 作者:行者123 更新时间:2023-12-02 07:08:31 24 4
gpt4 key购买 nike

也许有一些我看不到的明显的东西,但我认为在 div 中使用 data-role=page 设置 data-theme 应该为所有内容设置它:

<!DOCTYPE html> 
<html>
<head>
<title>Page Title</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
</head>
<body>

<div data-role="page" data-theme="b">

<div data-role="header">
<h1>Page Title</h1>
</div><!-- /header -->

<div data-role="content">
<p>Page content goes here.</p>
</div><!-- /content -->

<div data-role="footer">
<h4>Page Footer</h4>
</div><!-- /footer -->
</div><!-- /page -->

</body>
</html>

但我还是得到了默认主题A

我做错了什么?或者这是一个错误?它在 1 alpha 4 中有效,但在 1 final 中无效。

最佳答案

查看文档,http://jquerymobile.com/demos/1.0/docs/pages/pages-themes.html它具体说:“但是,页眉和页脚将默认为主题“a”。例如,如果您想要一个页面,其所有元素(包括页眉和页脚)只有主题“b”,您将需要为页面 div 以及页眉和页脚 div 指定 data-theme="b"。"

所以这不是一个错误。

关于jquery-mobile - 数据主题设置为页面不适用于 jquerymobile 的页眉和页脚,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8355536/

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