我是 jquery 新手,在显示灯箱表单时遇到问题。我想要一个与此类似的表格。但是,我不知道如何自定义它
下面是我的代码:
<html>
<head>
<title>Test Light Box</title>
<script type="text/javascript" src="jquery-ui-1.8.20.custom.min.js"></script>
<script type="text/javascript">
$("#dialog-form").dialog({
autoOpen: false,
height: 500,
width: 450,
modal: true,
Cancel: function() {
$( this ).dialog( "close" );
}
});
$("#create-uer")
.button()
.click(function(){
$( "#dialog-form" ).dialog( "open" );
});
</script>
</head>
<body>
<div id="dialog-form">
<form>
<fieldset>
<label for="name">Schlagwort</label>
<input type="text" name="search" id="search" />
</fieldset>
</form>
</div>
<button id="create-user">Create new user</button>
</body>