<tfoot id='QEAX3'></tfoot>
  • <i id='QEAX3'><tr id='QEAX3'><dt id='QEAX3'><q id='QEAX3'><span id='QEAX3'><b id='QEAX3'><form id='QEAX3'><ins id='QEAX3'></ins><ul id='QEAX3'></ul><sub id='QEAX3'></sub></form><legend id='QEAX3'></legend><bdo id='QEAX3'><pre id='QEAX3'><center id='QEAX3'></center></pre></bdo></b><th id='QEAX3'></th></span></q></dt></tr></i><div id='QEAX3'><tfoot id='QEAX3'></tfoot><dl id='QEAX3'><fieldset id='QEAX3'></fieldset></dl></div>
  • <legend id='QEAX3'><style id='QEAX3'><dir id='QEAX3'><q id='QEAX3'></q></dir></style></legend>

    <small id='QEAX3'></small><noframes id='QEAX3'>

          <bdo id='QEAX3'></bdo><ul id='QEAX3'></ul>
      1. 带有表格的 HTML/Javascript 弹出框

        HTML/Javascript popup box with table(带有表格的 HTML/Javascript 弹出框)

          <tfoot id='rdHdH'></tfoot>

            1. <legend id='rdHdH'><style id='rdHdH'><dir id='rdHdH'><q id='rdHdH'></q></dir></style></legend>

              <i id='rdHdH'><tr id='rdHdH'><dt id='rdHdH'><q id='rdHdH'><span id='rdHdH'><b id='rdHdH'><form id='rdHdH'><ins id='rdHdH'></ins><ul id='rdHdH'></ul><sub id='rdHdH'></sub></form><legend id='rdHdH'></legend><bdo id='rdHdH'><pre id='rdHdH'><center id='rdHdH'></center></pre></bdo></b><th id='rdHdH'></th></span></q></dt></tr></i><div id='rdHdH'><tfoot id='rdHdH'></tfoot><dl id='rdHdH'><fieldset id='rdHdH'></fieldset></dl></div>
                <tbody id='rdHdH'></tbody>
              • <bdo id='rdHdH'></bdo><ul id='rdHdH'></ul>

                <small id='rdHdH'></small><noframes id='rdHdH'>

                  本文介绍了带有表格的 HTML/Javascript 弹出框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在我的应用程序中,我有一个按钮,当用户单击该按钮时,我希望出现一个弹出框(而不是窗口),其中包含我传递给它的信息的表格.

                  In my application I have a button, when the user clicks on the button I want a popup box (not window) to appear with a table populated with information I pass in to it.

                  我一直在网上寻找,但似乎找不到如何做到这一点,甚至找不到从哪里开始(使用所有 HTML,使用所有 Javascript,同时使用 HTML 和 Javascript).有没有人做过类似的事情或知道一个好的起点(例如要使用哪些组件)?

                  I have been looking online and cant seem to find how to do this, or even where to start (use all HTML, use all Javascript, use both HTML and Javascript). Has anyone done something similar to this or know a good starting point for this (e.g. what components to use)?

                  推荐答案

                  有一系列框架可以为您解决问题.

                  There's a range of frameworks that'll do the trick for you.

                  一个简单而常见的方法是 jQuery Dialog (http://jqueryui.com/dialog/)

                  An easy and common one is jQuery Dialog (http://jqueryui.com/dialog/)

                  一个小例子,给定html:

                  A small example, given the html:

                  <div id="dialog-modal" title="Basic modal dialog" style="display:none">
                    <p>Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.</p>
                  </div>
                  
                  <a href="#" id="openDialog">Click me</a> 
                  

                  假设您已在顶部包含 jQuery 和 jQuery 对话框,请添加以下 javascript:

                  Assuming you've included jQuery and jQuery dialog on top, add the following javascript:

                  <script>
                  $(function() {
                     $( "#openDialog").on("click", function(){ 
                         $( "#dialog-modal" ).dialog({
                            height: 140,
                            modal: true
                          });
                         $( "#dialog-modal" ).show();
                      });
                   });
                  </script>
                  

                  这篇关于带有表格的 HTML/Javascript 弹出框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Fetch multiple links inside foreach loop(在 foreach 循环中获取多个链接)
                  Backbone Fetch Request is OPTIONS method(Backbone Fetch Request 是 OPTIONS 方法)
                  Fetch API leaks memory in Chrome(Fetch API 在 Chrome 中泄漏内存)
                  How can I download and save a file using the Fetch API? (Node.js)(如何使用 Fetch API 下载和保存文件?(Node.js))
                  Send blob data to node using fetch, multer, express(使用 fetch、multer、express 将 blob 数据发送到节点)
                  Sending a custom User-Agent string along with my headers (fetch)(发送自定义用户代理字符串以及我的标头(获取))
                  <tfoot id='vKj1U'></tfoot>
                    • <bdo id='vKj1U'></bdo><ul id='vKj1U'></ul>

                      <small id='vKj1U'></small><noframes id='vKj1U'>

                    • <i id='vKj1U'><tr id='vKj1U'><dt id='vKj1U'><q id='vKj1U'><span id='vKj1U'><b id='vKj1U'><form id='vKj1U'><ins id='vKj1U'></ins><ul id='vKj1U'></ul><sub id='vKj1U'></sub></form><legend id='vKj1U'></legend><bdo id='vKj1U'><pre id='vKj1U'><center id='vKj1U'></center></pre></bdo></b><th id='vKj1U'></th></span></q></dt></tr></i><div id='vKj1U'><tfoot id='vKj1U'></tfoot><dl id='vKj1U'><fieldset id='vKj1U'></fieldset></dl></div>
                    • <legend id='vKj1U'><style id='vKj1U'><dir id='vKj1U'><q id='vKj1U'></q></dir></style></legend>

                          <tbody id='vKj1U'></tbody>