jquery-ui/demos/resizable/helper.html

41 lines
1.3 KiB
HTML
Raw Normal View History

2009-03-08 14:13:16 +00:00
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Resizable - Helper</title>
<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
2010-01-27 12:29:43 +00:00
<script type="text/javascript" src="../../jquery-1.4.1.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.resizable.js"></script>
2009-03-08 14:13:16 +00:00
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
#resizable { width: 150px; height: 150px; padding: 0.5em; }
#resizable h3 { text-align: center; margin: 0; }
2009-03-08 14:16:10 +00:00
.ui-resizable-helper { border: 2px dotted #00F; }
2009-03-08 14:13:16 +00:00
</style>
<script type="text/javascript">
$(function() {
$("#resizable").resizable({
helper: 'ui-resizable-helper'
});
});
</script>
</head>
<body>
<div class="demo">
<div id="resizable" class="ui-widget-content">
<h3 class="ui-widget-header">Helper</h3>
</div>
</div><!-- End demo -->
<div class="demo-description">
<p>Display only an outline of the element while resizing by setting the <code>helper</code> option to a CSS class.</p>
</div><!-- End demo-description -->
</body>
</html>