zoukankan      html  css  js  c++  java
  • modal html

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    .hide{
    display: none;
    }
    .shadow{
    position: fixed;
    top:0;
    right:0;
    bottom:0;
    left:0;
    background-color: black;
    opacity: 0.6;
    z-index: 8;
    }
    .modal{
    position: fixed;
    background-color: #eeeeee;
    border: 1px solid grey;
    450px;
    height: 300px;
    top:250px;
    left:50%;
    margin-left:-220px;
    z-index: 10;
    }
    .host{
    300px;
    height:280px;
    margin: 0 auto;
    }
    </style>
    </head>
    <body>
    <div>
    <table border="1" cellspacing="0" cellpadding="0">
    <thead>
    <tr>
    <th>主机</th>
    <th>端口</th>
    <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td>10.0.0.1</td>
    <td>80</td>
    <td><a>编辑</a>|<a>删除</a></td>
    </tr>
    <tr>
    <td>10.0.0.2</td>
    <td>81</td>
    <td><a>编辑</a>|<a>删除</a></td>
    </tr>
    <tr>
    <td>10.0.0.3</td>
    <td>82</td>
    <td><a>编辑</a>|<a>删除</a></td>
    </tr>
    </tbody>
    </table>
    </div>
    <div class='shadow'>

    </div>
    <div class="modal">
    <div class='host'>
    <div>主机<input type="text" name="host" value=""></div>
    <div>端口<input type="text" name='port' value=""></div>
    <div><input type="button" value="取消" ></div>
    </div>
    </div>
    </body>
    </html>
  • 相关阅读:
    自定义指令directive
    angular中的表单验证
    ng-init,ng-controller,ng-model
    Redis执行lua脚本,key不存在的返回值
    消息队列对比
    数据库设计范式
    网络IO模型
    .NET 线程、线程池
    异步和多线程
    Memcache知识点
  • 原文地址:https://www.cnblogs.com/howhy/p/7346167.html
Copyright © 2011-2022 走看看