mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
de2ef2a585
This avoids styling issues where ui-state-focus rules apply to submenus. Fixes #10162 Closes gh-1342
64 lines
1.5 KiB
HTML
64 lines
1.5 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>jQuery UI Menu - Icons</title>
|
|
<link rel="stylesheet" href="../../themes/base/all.css">
|
|
<script src="../../external/jquery/jquery.js"></script>
|
|
<script src="../../ui/core.js"></script>
|
|
<script src="../../ui/widget.js"></script>
|
|
<script src="../../ui/position.js"></script>
|
|
<script src="../../ui/menu.js"></script>
|
|
<link rel="stylesheet" href="../demos.css">
|
|
<script>
|
|
$(function() {
|
|
$( "#menu" ).menu();
|
|
});
|
|
</script>
|
|
<style>
|
|
.ui-menu { width: 150px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<ul id="menu">
|
|
<li>
|
|
<div><span class="ui-icon ui-icon-disk"></span>Save</div>
|
|
</li>
|
|
<li>
|
|
<div><span class="ui-icon ui-icon-zoomin"></span>Zoom In</div>
|
|
</li>
|
|
<li>
|
|
<div><span class="ui-icon ui-icon-zoomout"></span>Zoom Out</div>
|
|
</li>
|
|
<li class="ui-state-disabled">
|
|
<div><span class="ui-icon ui-icon-print"></span>Print...</div>
|
|
</li>
|
|
<li>
|
|
<div>Playback</div>
|
|
<ul>
|
|
<li>
|
|
<div><span class="ui-icon ui-icon-seek-start"></span>Prev</div>
|
|
</li>
|
|
<li>
|
|
<div><span class="ui-icon ui-icon-stop"></span>Stop</div>
|
|
</li>
|
|
<li>
|
|
<div><span class="ui-icon ui-icon-play"></span>Play</div>
|
|
</li>
|
|
<li>
|
|
<div><span class="ui-icon ui-icon-seek-end"></span>Next</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<div>Learn more about this menu</div>
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="demo-description">
|
|
<p>A menu with the default configuration, showing how to use a menu with icons.</p>
|
|
</div>
|
|
</body>
|
|
</html>
|