div 模拟alert弹出框
--------------信息展示弹出框----------------
<style>
.over{background-color: rgba(0, 0, 0, 0.7);display: block;height: 100%;left: 0;position: fixed;top: 0;width: 100%;z-index: 998;}
.alert{display: block;left: 50%;position: fixed;top: 50%;transform: translateX(-50%) translateY(-50%);width: 702px;z-index: 999;}
.title{background-color: #f54c53;border-radius: 10px 10px 0 0;color: #fff;font-size: 34px;line-height: 110px;padding-left: 30px;}
.close{display: block;height: 36px;position: absolute;right: 30px;top: 0;width: 80px;}
.content{background-color: #fff;border-radius: 0 0 10px 10px;color: #747474;font-size: 22px;padding: 30px;}
.important{color: #f54c53;}
</style>
<div class="over"></div>
<div class="alert">
<h2 class="title">
<span>什么是英美次卡?</span>
<a href="javascript:;" class="close">取消</a>
</h2>
<div class="content">
<p><span class="important">• 英美次卡学习套餐优势:</span>每天可以随意预约多节课,没有限制,可以一次性预约未来期间内的多节课。有效期为上课次数的1.5倍,可以随意请假</p>
<p><span class="important">• 英美次卡学习套餐适合以下用户:</span>想体验地道的英美文化,学习原汁原味的英美发音</p>
<p><span class="important">约课须知:</span></p>
<p>
1、上午10点-晚上11点均可上课,需提前30分钟预约课程。 <br>
2、提前1小时取消预约课程。<br>
3、一天能随意预约多次课,可以一次性预约未来的多节课.
</p>
</div>
</div>

---------------选择弹出框------------------
<style>
.over{background-color: rgba(0, 0, 0, 0.7);display: none;height: 100%;left: 0;position: fixed;top: 0;width: 100%;z-index: 998;}
.g-pop-1 {position: fixed;top: 50%;left: 50%;width: 7.02rem;z-index: 999;}
.g-pop-1 .tit {padding-left: .3rem;line-height: 1.1rem;font-size: .34rem;background-color: #f54c53;color: #fff;border-radius: 10px 10px 0 0;}
.g-pop-1 .txt {padding: .3rem;font-size: .22rem;color: #747474;border-radius: 0 0 10px 10px;text-align: center;}
.pop-confirm .g-btn-2 {width: 2.8rem;}
.g-btn-2.btn-orange {background-color: #f54c53;}
.g-btn-2 {width: 3.4rem;height: 1rem;font-size: .32rem;line-height: 1rem;display: inline-block;border-radius: 10px;color: #fff;border: none;outline: none;text-align: center;}
.pop-confirm .btn-gray {float: right;background-color: #d5d5d5;height: 1rem;font-size: .32rem;line-height: 1rem;}
</style>
<div class="over"></div>
<div class="g-pop-1 pop-confirm alert_confirm" style="display: block;">
<h2 class="tit">
<span>选择进入</span>
</h2>
<div class="txt">
<a href="javascript:;" class="g-btn-2 btn-orange a-confirm select_k12_jason" value="2">标准课程</a>
<a href="javascript:;" class="g-btn-2 btn-gray a-cancel select_k12_jason" value="1"> K12课程</a>
</div>
</div>

div 模拟alert弹出框的更多相关文章
- 系统默认的alert弹出框总会带有域名
最近在开发Hybrid APP时发现用系统默认的alert弹出框总会带有域名,用户体验就比较不好了.想了一种办法来解决就是覆盖alert的方法. (function(){ window.a ...
- Alert弹出框处理
selenium的API提供了Alert类对alert弹出框的处理的方法,涉及到的方法有text,dismiss(),accept()和send_keys(),在javascript中主要有alert ...
- 清除ios系统alert弹出框的域名
清除ios系统alert弹出框的域名 <script> window.alert = function(name) { var iframe = document.createElemen ...
- 怎么让alert弹出框的内容可以换行?
在要点击弹出的地方输入这样的代码: alert("文本框中共有字母a的个数为:"+num+"\n"+"他们在字符串的索引为:"+ind) 就 ...
- selenium处理alert弹出框
import time from selenium import webdriver driver =webdriver.Chrome(r"D:\工具包\chromedriver.exe&q ...
- 制作鼠标移动到div上面显示弹出框
<div class="show-dialog hide"> <header> <div class="note"> < ...
- 计算alert弹出框的次数
(function() { var oldAlert = window.alert, count = 0; window.alert = function(a) { count++; oldAlert ...
- updatepanel中使用alert弹出框方法
原文发布时间为:2009-05-17 -- 来源于本人的百度文章 [由搬家工具导入] ScriptManager.RegisterStartupScript(this.UpdatePa ...
- alert弹出框 弹出窗口 ----sweetAlert
推荐一款好用的alert,下面地址是demo,很直观的看到效果,wap可以使用 http://www.dglives.com/demo/sweetalert-master/example/ < ...
随机推荐
- StackOverflow经典问题:代码中如何去掉烦人的“!=null"判空语句
问题 为了避免空指针调用,我们经常会看到这样的语句 if (someobject != null) { someobject.doCalc();} 最终,项目中会存在大量判空代码,多么丑陋繁冗!如何避 ...
- 20204107 孙嘉临 《PYTHON程序设计》实验四报告
课程:<Python程序设计>班级: 2041姓名: 孙嘉临学号: 20204107实验教师:王志强实验日期:2020年6月29日必修/选修: 公选课 ##作为一个轻度游戏玩家,当然是要写 ...
- jquery鼠标移入移出事件
<!DOCTYPE html><html> <head> <meta http-equiv="Content-type" conte ...
- Unity中各种查找物体的方法
本文转自博主:Teng的世界 https://blog.csdn.net/teng_ontheway/article/details/47188141 GameObject.Find().Transf ...
- Kubernetes之Ingress
在Service篇里面介绍了像集群外部的客户端公开服务的两种方法,还有另一种方法---创建Ingress资源. 定义Ingress (名词)-进入或进入的行为;进入的权利;进入的手段或地点;入口. 接 ...
- 我是怎么写 Git Commit message 的?
目录 作用 用的什么规范? type scope subject body footer 参考文章 用的什么辅助工具? 作用 编写格式化的 commit message 能够大大提高代码的维护效率. ...
- 详解C++中继承的基本内容
有些类与类之间存在特殊的关系,有共性也有特性,比如动物类可以细分为猫,狗等.下级别的成员除了拥有上一级的共性,还有自己的特性,这个时候就可以考虑继承的技术,减少重复代码. 一.继承中的对象模型 1.1 ...
- Docker搭建zabbix+grafana监控系统
一.准备工作 1.mysql数据库:192.168.1.5 2.nginx服务:192.168.1.10 3.docker服务器:192.168.1.20 4.zabbix客户端若干 二.docker ...
- SpringBoot集成websocket发送后台日志到前台页面
业务需求 后台为一个采集系统,需要将采集过程中产生的日志实时发送到前台页面展示,以便了解采集过程. 技能点 SpringBoot 2.x websocket logback thymeleaf Rab ...
- 在idea的控制台中中文显示为乱码
显示乱码的原因不一定相同 我目前解决方法: -Dfile.encoding=UTF-8