javascript-ej1-demos/draggable/resizable.html

80 строки
2.5 KiB
HTML

<!doctype html>
<html>
<head>
<title>Essential JS 1: Resizable</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8" />
<link href="../content/bootstrap.min.css" rel="stylesheet" />
<link href="../content/ejthemes/default-theme/ej.web.all.min.css" rel="stylesheet" />
<link href="../content/default.css" rel="stylesheet" />
<link href="../content/default-responsive.css" rel="stylesheet" />
<!--[if lt IE 9]>
<script src="../scripts/jquery-1.11.3.min.js" type="text/javascript"></script>
<![endif]-->
<!--[if gte IE 9]><!-->
<script src="../scripts/jquery-3.4.1.min.js" type="text/javascript"></script>
<!--<![endif]-->
<script src="../scripts/ej.web.all.min.js" type="text/javascript"></script>
<script src="../scripts/properties.js" type="text/javascript"></script>
</head>
<body>
<div class="content-container-fluid">
<div class="row">
<div class="cols-sample-area">
<div class="frame" style="height: 250px;">
<div class="sampleContent">
<div id="resize" class="drag">
<h3 class="ui-widget-header">Resize</h3>
<div class="e-icon e-resize-handle e-resizable"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" class="jsScript">
var t = $("#resize");
$("#resize").ejResizable(
{
minWidth: 80,
maxWidth: 370,
minHeight: 80,
maxHeight: 250,
helper: function (event) {
return $(event.element);
}
});
</script>
<style type="text/css">
#resize {
width: 100px;
height: 100px;
position: absolute;
background-color: #ececec;
}
.e-resize-handle {
cursor: se-resize;
display: block;
position: absolute;
right: 0;
bottom: 0px;
}
h3 {
text-align: center;
margin: 0;
}
.ui-widget-header {
border: 1px solid #c8c8c8;
background: #179bd7;
color: #ffffff;
font-size: 20px;
height: 26px;
font-weight: 400;
}
</style>
</body>
</html>