我正在使用JQuery Mobile Navbar。我希望子菜单显示在相应菜单的顶部而不是它下面。以下代码显示子项“Test 1”和“Test 2”显示在“Less”下,但我希望它们显示在它上面。这可能吗?
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.1/jquery.mobile-1.4.1.min.css">
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.1/jquery.mobile-1.4.1.min.js"></script>
</head>
<body>
<div data-role="page" id="pageone">
<div data-role="header">
<h1>Welcome To My Homepage</h1>
</div>
<div data-role="main" class="ui-content">
<div data-role="navbar">
<ul>
<li><a href="#" data-icon="plus">More</a></li>
<li><a href="#" data-icon="minus">Less</a>
<ul>
<li><a href="#" data-icon="minus">Test 1</a>
</ul>
<ul>
<li><a href="#" data-icon="minus">Test 2</a>
</ul>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>