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 ...
随机推荐
- 基于Maven site的穷人的本地知识管理系统
1 Motivation On daily study or development, a simple knowledge management system is required. In the ...
- 3.Complementing a Strand of DNA
Problem In DNA strings, symbols 'A' and 'T' are complements of each other, as are 'C' and 'G'. The r ...
- JMS与MQ详解(有项目)
<一>m2mGW项目 1.ActiveMQ概述 企业消息软件从80年代起就存在,它不只是一种应用间消息传递风格,也是一种集成风格.因此,消息传递可以满足应用间的通知和互相操作.但是 ...
- 转载《Android Handler、Message》
之前也是由于周末通宵看TI3比赛,一直没找到时间写博客,导致已经有好久没更新了.惭愧!后面还会恢复进度,尽量保证每周都写吧.这里也是先恭喜一下来自瑞典的Alliance战队夺得了TI3的冠军,希望明年 ...
- 关于as3调用js报“null为空或不是对象”错误
主要原因是:flash插件的object对象无ID属性. 顺便说下as3调用js的方法. as3引用: import flash.external.ExternalInterface; as3中调用 ...
- js本地图片预览
相信大家都遇到过上传图片之前预览,网上找了很多,但都不是所有浏览器都支持,不过后来找到一个,但自己没有完全实验. 代码如下: <script> //使用IE条件注释来判断是否IE6,通过判 ...
- 统计Apache或Nginx访问日志里的独立IP访问数量的Shell
1.把IP数量直接输出显示: cat access_log_2011_06_26.log |awk '{print $1}'|uniq -c|wc -l 2.把IP数量输出到文本显示: cat acc ...
- 20141203图片Base64编码与解码
最近需要将图片通过转码的形式传给移动端,使用了Base64转码与 解码 import java.io.FileInputStream; import java.io.FileOutputStream; ...
- spring注解 aop
@Resource(name="as") 为空按类型装配 @autowired 按类型 @quafiler (name="xx") 按名称 spring继承关 ...
- java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I错误解决
在J2EE框架下开发web网站,这种问题经常遇到,只要我们网上搜一下,就可以看到很多版本的,我整理一下: 第一种可能性解决:看看我的项目:主要 是里面的Structs 1.3 (structs 2)和 ...