hmtl弹出框样式
@model Web.Manager.Models.SendMessage
@{
    ViewBag.Title = "消息发布";
    Layout = null;
}
<link href="@Url.Content("~/Styles/Layout/style.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Styles/Layout/bootstrap.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Styles/SendMessage.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-1.11.1.js")"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.js")"></script>
<style type="text/css">
    body {
        font-size: 12px;
        font-family:Arial 'Microsoft YaHei';
    }
ul li {
        list-style-type: none;
    }
dl {
        padding: 2px;
    }
dd {
        position: absolute;
        margin-left: 100px;
        height: 23px;
    }
dt {
        position: absolute;
        font-weight: normal;
        height: 23px;
    }
.divMainContent {
        text-align: center;
        height: 32px;
        font-size: 12px;
    }
.btnRole {
        margin-left: 68px;
        margin-top:-8px;
        min-width: 160px;
        max-width: 160px;
    }
.btnSearch {
        margin-left: 6px;
        margin-top:-8px;
        width: 60px;
    }
    input {
        font-size: 12px;
        font-family:Arial 'Microsoft YaHei';
    }
    .divDalog{
        margin-left:380px;
        margin-top:120px;
        position:absolute;
        height:300px;
        width:400px;
        border:1px solid #CCC;
        background:#ffffff;
        display:none;
    }
    .closeCss{
        text-align:right;
    }
    .divDalogContent{
        margin:2px;
    }
    .black_overlay{ 
            display: none; 
            position: absolute; 
            top: 0%; 
            left: 0%; 
            width: 100%; 
            height: 100%; 
            background-color: black; 
            z-index:1001; 
            -moz-opacity: 0.8; 
            opacity:.80; 
            filter: alpha(opacity=88); 
        } 
        .white_content { 
            display: none; 
            position: absolute; 
            top: 25%; 
            left: 25%; 
            width: 55%; 
            height: 55%; 
            padding: 12px; 
            border: 1px solid #0409ff; 
            background-color: white; 
            z-index:1002; 
            overflow: auto; 
        } 
</style>
<script type="text/javascript">
    function CloseDiv() {
        document.getElementById('light').style.display = 'none';
        document.getElementById('fade').style.display = 'none';
    }
    function ShowDiv(data) {
        document.getElementById('light').style.display = 'block';
        document.getElementById('fade').style.display = 'block';
        $.ajax({
            url: "/Message/SendMessageDialog?dataType=" + data,
            type: "POST",
            contentType: "application/json; charset=utf-8",
            data: {},
            dataType: "html",
            success: function (result) {
                var closeHtml = "<div class='closeCss'><a href='javascript:void(0)' onclick='CloseDiv();'>关闭</a></div>";
                var result = closeHtml + "<p><div class='divDalogContent'>" + result + "</div></p>";
                $("#light").html(result);
            },
            error: function () {
            }
        });
    }
</script>
<div style="width:600px;height:620px;margin:6px 0px 6px 300px;border:1px solid #CCC;border-style:dashed; position:absolute;">
    @using (Html.BeginForm("SendMessage", "Message", FormMethod.Post, new { id = "FromSend" }))
    {
        <p style="font-weight:600;">当前位置:消息发布</p>
        <dl>
            <dt>消息类型:</dt>
            <dd>
                <select id="Select1">
                    <option></option>
                </select>
            </dd>
        </dl>
        <dl>
            <dt>账号关键字:</dt>
            <dd>
                <input type="text" style="width:120px;" />
                <input type="button" class="btnRole" onclick="javascript:ShowDiv('PartialPageSelectRole');" value="选择角色" />
                <input type="button" class="btnSearch" value="搜索" />
            </dd>
        </dl>
        <div style="padding-top:20px;position:absolute;">
            <div style="height:200px;width:200px;border:1px solid #CCC;">
                <ul>
                    <li><input id=" checkbox1" type="checkbox" />全选</li>
                    <li><input id="Checkbox1" type="checkbox" />1111111</li>
                    <li><input id="Checkbox1" type="checkbox" />2222222</li>
                </ul>
            </div>
            <div style="width:200px;">
                <span style="text-align:right">共<span style="color:red;">10</span>条记录</span>
            </div>
        </div>
        <div style="padding-top:20px;margin-left:196px;height:200px; position:absolute;">
            <ul>
                <li><input type="button" style="margin-top:60px;width:60px;height:21px;" value=">>" /></li>
                <li><input type="button" style="margin-top:30px;width:60px;height:21px;" value="<<" /></li>
            </ul>
        </div>
        <div style="padding-top:20px;margin-left:300px; position:absolute;">
            <div style="height:200px;width:200px;border:1px solid #CCC;">
                <ul>
                    <li><input id=" checkbox1" type="checkbox" />全选</li>
                    <li><input id="Checkbox1" type="checkbox" />1111111</li>
                    <li><input id="Checkbox1" type="checkbox" />2222222</li>
                </ul>
            </div>
            <div style="width:200px;">
                <span style="text-align:right">共<span style="color:red;">10</span>条记录</span>
            </div>
        </div>
        <div style="margin-top:280px;">
            <dl>
                <dt>消息主题:</dt>
                <dd>
                    <input type="text" />
                    <input type="button" onclick="javascript:ShowDiv('PartialPageSelecProduct');"
                           style="margin-top:-12px;margin-left:32px;min-width: 160px;max-width: 160px;" value="选择产品" />
                </dd>
            </dl>
            <dl>
                <dt>消息内容:</dt>
                <dd>
                    <textarea style="height:190px;width:402px;"></textarea>
                </dd>
            </dl>
            <dl style="margin-top:196px;margin-left:100px;">
                <dt><input type="button" value="确定" /></dt>
                <dd><input type="button" style="margin-left:-46px;" value="重置" /></dd>
            </dl>
        </div>
    }
</div>
<div id="light" class="white_content">
</div> 
<div id="fade" class="black_overlay"></div>
hmtl弹出框样式的更多相关文章
- Jquery-UI实现弹出框样式
		
需要引用 <link href="CSS/jquery-ui.custom.min.css" rel="stylesheet" /> <scr ...
 - android自定义弹出框样式实现
		
前言: 做项目时,感觉Android自带的弹出框样式比较丑,很多应用都是自己做的弹出框,这里也试着自己做了一个. 废话不说先上图片: 实现机制 1.先自定义一个弹出框的样式 2.自己实现CustomD ...
 - menu-普通menu弹出框样式
		
今天接触到了menu弹出框样式.主要就是在theme下进行调整.现在把接触到的知识点总结一下. 在theme中,跟menu有关的几个属性如下 <item name="panelBack ...
 - Android窗口为弹出框样式
		
1.XML android:theme="@android:style/Theme.Dialog <?xml version="1.0" encoding=&quo ...
 - Bootstrap弹出框(modal)垂直居中
		
最近在做一个eit项目,由于此项目里面一些框架要遵循nttdata的一些规则,故用到了Bootstrap这个东东,第一次碰到这个东东,有很大抵触,觉得不好,但用起来我觉得和别的弹出框真没什么两样.废话 ...
 - 弹出框JBox实例
		
前几天做的考试系统的一些后台弹出框的一些模板.主要是因为普通的弹出框样式不是很好,颜色也不能调换.这里我们用的是JBox,还是从师傅那得知的.自己小实验了下,这里就做个小结. JBox 插件说明 - ...
 - 四种常见的提示弹出框(success,warning,error,loading)原生JavaScript和jQuery分别实现
		
原文:四种常见的提示弹出框(success,warning,error,loading)原生JavaScript和jQuery分别实现 虽然说现在官方的自带插件已经有很多了,但是有时候往往不能满足我们 ...
 - javascript基于对象的弹出框封装
		
先睹为快,移动端:戳这里,打开页面后点击投票查看效果.PC端测试直接切换body的overflow属性:hidden和auto一样可以,比下面相对简化,又有人说这样偶尔不行..如果你知道优缺点欢迎给出 ...
 - js登录弹出框插件
		
第一步:页面引入css:<link rel="stylesheet" type="text/css"" href="common/cs ...
 
随机推荐
- php curl
			
这几天在帮一些同学处理问题的时候,突然发现这些同学是使用file_get_contents()函数来采集页面内容的,貌似都没有curl的概念亦或是对这种工具特别不敏感, 本文我来给大家详细介绍下cUR ...
 - Entity Framework关联查询以及数据加载(延迟加载,预加载)
			
数据加载分为延迟加载和预加载 EF的关联实体加载有三种方式:Lazy Loading,Eager Loading,Explicit Loading,其中Lazy Loading和Explicit Lo ...
 - Android.os.NetworkOnMainThreadException
			
出现Android.os.NetworkOnMainThreadException错误提示的原因原因:不允许在主线程中进行网络访问解决办法:将网络访问的操作单独放到一个线程中
 - 数据库SQL优化总结
			
1.对查询进行优化,要尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引. 2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索 ...
 - C#对象比较
			
http://www.veryhuo.com/a/view/42513.html ReferenceEquals:静态方法,不能重写,只能比较引用,如果有一个参数为null会返回false,不会抛出异 ...
 - 通过js的console优雅的将php调试信息输出
			
function consoleLog($val){ $debug = debug_backtrace(); unset($debug[0]['args']); echo '<script> ...
 - cat /proc/devices  和ls /dev
			
对于新手来讲,linux的框架实在是太庞大,况且很多知识点需自己做才能理解 设备 文件 ,设备编号 #ll -a /dev 在每一行都可以看到设备文件.设备编号(主.次) 对于每种硬件设备,系统 ...
 - HDU 1403-Longest Common Substring (后缀数组)
			
Description Given two strings, you have to tell the length of the Longest Common Substring of them. ...
 - WaitForMultipleObjects返回失败原因之一
			
上网搜了下 关于 WaitForMultipleObjects等待多个线程退出的状态失败的情况,也有人遇到类似的情况. 一次项目中我也遇到这么个情况.项目中创建线程都是用的 _beginthread ...
 - winfrom自定义控件
			
c#TabControl控件左边选项卡左边显示,文字横向显示 http://blog.csdn.net/kasama1953/article/details/52133713 WinForm中,给Te ...