<pre id=\\\"best-answer-content\\\" class=\\\"reply-text mb10\\\">!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.0 Transitional//EN\\\" \\\"<a href=\\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\\" target=\\\"_blank\\\">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>\\\"
html xmlns=\\\"<a href=\\\"http://www.w3.org/1999/xhtml\\\" target=\\\"_blank\\\">http://www.w3.org/1999/xhtml</a>\\\"
head
meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=utf-8\\\" /
script type=\\\"text/javascript\\\" src=\\\"jquery1.5.min.js\\\"/script
script type=\\\"text/javascript\\\" src=\\\"jquery-ui-1.8.9.custom.min.js\\\"/script
script type=\\\"text/javascript\\\"
//![CDATA[
$(function(){
$(\\\"#dialog\\\").dialog({
autoOpen: false,
modal:true,
title:\\\"enozoom.com\\\",
minWidth:640,
resizable:false,
buttons:{\\\"提交\\\":function(){
//写一些内容
$(\\\"form\\\").submit();
},\\\"取消\\\":function(){$(\\\"#dialog\\\").dialog(\\\"close\\\");}}
});
$(\\\"#btn_open_dialog\\\").click(function(){$(\\\"#dialog\\\").dialog(\\\"open\\\") })
})
//]]
/script
/head
body
form action=\\\"\\\" method=\\\"post\\\"
div id=\\\'dialog\\\'
textarea不需要设定样式也会自动隐藏,只要声明在dialog内!/textarea
/div
button type=\\\"button\\\" id=\\\"btn_open_dialog\\\"弹出/button
/form
/body
/html
参考资料:<span class=\\\"gray\\\"><a href=\\\"http://www.enozoom.com\\\" target=\\\"_blank\\\">http://www.enozoom.com</a></span> |