首页 > 代码库 > div模态层示例

div模态层示例

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" style="height: 100%;"><head>    <title>任务量分配 </title></head><body style="border-width: 0px; padding: 0px; margin: 0px; padding-top: 0px; height: 100%;    position: relative;">    <div style="padding: 0px; margin: 0px; border-width: 0px; overflow: auto; position: absolute;        left: 0px; top: 0px; right: 0px; bottom: 0px; z-index: 0;">        <form name="form1" method="post" id="form1" style="margin-left: 10px;">        <div>            <table style="width: 100%; border: 1px solid #B5CAE3; background-color: #DCECF4;                height: 40px; width: 800px;">                <tr>                    <td>                        <table style="display: inline-block;">                            <tr>                                <td style="width: 50px; text-align: right;">                                    考试<span style="color: red;">*</span>                                </td>                                <td>                                    <select name="ddlGrade" onchange="javascript:setTimeout(‘__doPostBack(\‘ddlGrade\‘,\‘\‘)‘, 0)"                                        id="ddlGrade">                                    </select>                                </td>                                <td style="width: 40px; text-align: right;">                                    科目<span style="color: red;">*</span>                                </td>                                <td>                                    <select name="ddlCourse" id="ddlCourse">                                        <option value="010101003716010518010003">语文</option>                                    </select>                                </td>                            </tr>                        </table>                        <table style="display: inline-block; margin-left: 10px;">                            <tr>                                <td id="btnSearchContainer" style="padding-left: 10px;">                                    <input type="submit" name="btnSearch" value="查询" id="btnSearch" class="butn" />                                </td>                                <td id="btnAvgAssignContainer" style="padding-left: 10px;">                                    <input type="submit" name="btnAvgAssign" value="平均分配" id="btnAvgAssign" class="butn" />                                </td>                            </tr>                        </table>                    </td>                </tr>            </table>        </div>        </form>    </div>    <div style="padding: 0px; margin: 0px; border-width: 0px; position: absolute; left: 0px;        top: 0px; right: 0px; bottom: 0px; z-index: 1; display: table-cell; filter: alpha(opacity=5);        opacity: 0.05; background-color: White;">    </div>    <div style="padding: 0px; margin: 0px; border-width: 0px; position: absolute; left: 0px;        top: 0px; right: 0px; bottom: 0px; z-index: 2; display: table-cell;">        hello    </div></body></html>

 

div模态层示例