html:

在页面头部要写

<title>网上预约</title>
<link href="../App_Themes/default/css/header.css" rel="stylesheet" type="text/css" />
<link href="../App_Themes/default/css/public.css" rel="stylesheet" type="text/css" /

<!--自适应手机页面-->
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0;" name="viewport" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no, email=no" />
<meta name="msapplication-tap-highlight" content="no" />

<script src="../App_Themes/default/js/jquery-1.9.1.min.js" type="text/javascript"></script>

<div class="page onlinebooking">

<div class="mask"></div>
<div class="pop">
<p>来源</p>
<p><input type="radio" checked="checked" />微信公众号</p>
<p><input type="radio" />中介</p>
<p><input type="radio" />朋友介绍</p>
<p><input type="radio" />传单</p>
<p><input type="radio" />其他</p>
<p style="border:none;">
<input type="button" value="确 定" />
</p>
</div>

</div>

css:

.onlinebooking .mask
{
width: 100%;
height: 100%;
background: #000;
opacity: .3;
position: fixed;
top: 0;
left: 0;
z-index: 1;
}

.onlinebooking .pop
{
width: 240px;
height: 16rem;
background: #fff;
font-size: 62.5%;
position: fixed;
top: 50%;
left: 50%;
margin-top: -130px;
margin-left: -118px;
z-index: 10;
}

.onlinebooking .pop p
{
width:100%;
line-height:2.8em;
vertical-align:middle;
padding: 0 1em;
box-sizing: border-box;
border-bottom:1px solid #eee;
}

.onlinebooking .pop p input[type="radio"]
{

margin-right:.5em;
position:relative;
top:2px;
-webkit-appearance: radio;

}

.onlinebooking .pop p input[type="button"]
{
width:100%;
line-height:2.5em;
margin-top:1em;
background-color:#B380B5;
border:none;
text-align:center;
vertical-align:middle;
color:#fff;
border-radius:.2em;
font-family: Arial, Microsoft YaHei;
font-size: 1em;
}

用CSS3在手机上写弹出框,遮盖层的更多相关文章

  1. jQuery+css3弹出框插件

    先来看DEMO:https://codepen.io/jonechen/pen/regjGG 插件的开发很简单,运用了CSS3的动画效果,并且弹出框的内容可以自定义.插件的默认配置参数有三个: var ...

  2. js+jquery手写弹出提示框

    <!doctype html> <html> <head> <meta charset="utf-8"> <title> ...

  3. 由于想要实现下载的文件可以进行选择,而不是通过<a>标签写死下载文件的参数,所以一直想要使用JFinal结合ajax实现文件下载,但是ajax实现的文件下载并不能触发浏览器的下载文件弹出框,这里通过模拟表单提交实现同样的效果。

    由于想要实现下载的文件可以进行选择,而不是通过<a>标签写死下载文件的参数,所以一直想要使用JFinal结合ajax实现文件下载(这样的话ajax可以传递不同的参数),但是ajax实现的文 ...

  4. 用JQuery写出登录弹出框

    类似百度的登录弹出框,可用jquery的fadeIn(),hide(),show(),slideDown()等动画函数实现,一下为html5 代码: <!DOCTYPE html> < ...

  5. 尝试用React写几个通用组件 - 带搜索功能的下拉列表,开关切换按钮,弹出框

    尝试用React写几个通用组件 - 带搜索功能的下拉列表,开关切换按钮,弹出框 近期正在逐步摸索学习React的用法,尝试着写几个通用型的组件,整体项目还是根据webpack+react+css-me ...

  6. 用showModalDialog写的简单弹出框传参与反参

    vReturnValue = window.showModalDialog(sURL [, vArguments] [,sFeatures]) sURL -- 必选参数,类型:字符串.用来指定对话框要 ...

  7. html、css和js原生写一个模态弹出框,顺便解决父元素半透明子元素不透明效果

    模态框: html部分: <!-- 按钮 --> <button id="box" onclick="pop_box()">弹出框< ...

  8. echart 时间轴、以及y轴值过大但是变化不大显示感觉不出变化的问题+弹出框拖动div事件

    1.时间轴 echart 提供了一种图表,如果x轴是一个时间范围,并且是连续的,如果用传统的数据驱动会很慢,所以用时间轴的方式 function initCurve(_data){ var resul ...

  9. bootstrap中popover.js(弹出框)使用总结+案例

    bootstrap中popover.js(弹出框)使用总结+案例 *转载请注明出处: 作者:willingtolove: http://www.cnblogs.com/willingtolove/p/ ...

随机推荐

  1. xcode-git笔记

    git initgit add .vi .gitignore /*将代码区蓝色字体的内容*/git commit -m "初次建立"git remote add origin ht ...

  2. iterm2配色

    #enables colorin the terminal bash shell export export CLICOLOR= #sets up thecolor scheme for list e ...

  3. RabbitMQ消息机制广播分发

    public static void SendMessage() { var factory = new ConnectionFactory(); factory.HostName = "1 ...

  4. openstack vm_lifecycle

    nova instance状态:power_state, vm_state, task_state 2015-09-22 Openstack 185 nova instance有3种状态:power_ ...

  5. 【JAVA】【Eclipse】出现This element neither has attached source nor attached Javadoc...的解决方法

    This element neither has attached source nor attached Javadoc and hence no Javadoc could be found Ec ...

  6. Lucene的分析过程

    转自:http://www.open-open.com/lib/view/open1348033848724.html Lucene的分析过程 回顾倒排索引的构建 收集待建索引的原文档(Documen ...

  7. input file 图片上传

    使用第三方:jquery.ajaxfileupload.jsinput中的name根据后端来定 <form method="post" enctype="multi ...

  8. avalon源码分析(转)

    avalon源码分析目录 第一篇 : 关于前端的MVVM架构 第二篇 : 初步接触 第三篇 : 执行流程1 第四篇 :  执行流程2 第五篇 : 整体架构 第六篇 : ViewModel  第七篇 : ...

  9. ue4框架C++语法汇总文章

    1.Run external .exe file TCHAR* url = TEXT("C:\\windows\\system32\\calc.exe"); FPlatformPr ...

  10. 9. js实现java方法:HtmlUtils.htmlEscape()

    function htmlEscape(str) { return String(str) .replace(/&/g, '&') .replace(/"/g, '" ...