gpt4 book ai didi

jquery - jQuery 的 ThemeRoller 弄乱了 UI

转载 作者:太空宇宙 更新时间:2023-11-04 04:08:10 24 4
gpt4 key购买 nike

我遇到了以下问题:我想使用 ThemeRoller将自定义主题应用于我的 View 。但是一旦我使用它们,界面就会变得困惑,请看下面的图片:

没有 ThemeRoller:

Without theme Roller

使用 ThemeRoller:

With ThemeRoller

使用 ThemeRoller,刷新:

With ThemeRoller, refreshed

我的导航菜单也是如此:从此:

enter image description here

对此:

enter image description here

我按照他们这边的解释使用了 ThemeRoller。我使用的是正确版本的 ThemeRoller,与我的 jQuery 版本 1.0.1 匹配。我已按正确顺序导入文件:

<link rel="stylesheet" href="~/Themes/CustomTheme2.min.css" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile.structure-1.0.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>

如果您遗漏任何信息,请发表评论,我会提供!

提前致谢!

EDIT_1:

ThemeRoller 的说明:

要使用您的主题,请将其添加到页面头部的 jquery.mobile.structure 文件之前,如下所示:

<!DOCTYPE html>
<html>
<head>

<title>jQuery Mobile page</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/themes/my-custom-theme.css" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile.structure-1.0.1.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>

</head>

最佳答案

据我所知,为所有元素创建/应用样式的 js 渲染了两次。尝试在控制台中检查。

关于jquery - jQuery 的 ThemeRoller 弄乱了 UI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21086511/

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