Nir*_*ala 1 jquery jquery-ui popup
我是新手JQuery。我需要使用JQuery. 请帮助如何做到这一点,或者请提供我如何获得此链接的链接。
我正在使用梅西,但我无法获得所需的结果。
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link rel="stylesheet" href="files/messi.min.css" />
</head>
<body>
<script src="files/messi.min.js">
new messi('This is a message with Messi.', { title: 'Title' });
</script>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="click" />
</div>
</form>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
您可以使用jQuery Ui轻松完成。
HTML
<a href="#" id="contactUs">Contact Us</a>
<div id="dialog" title="Contact form">
<p>appear now</p>
</div>
Run Code Online (Sandbox Code Playgroud)
您需要初始化对话框
$(function() {
// this initializes the dialog (and uses some common options that I do)
$("#dialog").dialog({autoOpen : false, modal : true, show : "blind", hide : "blind"});
// next add the onclick handler
$("#contactUs").click(function() {
$("#dialog").dialog("open");
return false;
});
});
Run Code Online (Sandbox Code Playgroud)
我从这里得到这个
希望这会有所帮助。祝你好运。