svg+css实现的消息通知提示提醒框效果代码

代码语言:html

所属分类:弹出层

代码描述:svg+css实现的消息通知提示提醒框效果代码,结合jquery可点击关闭按钮关闭弹出层。

代码标签: svg css 消息 通知 提示 提醒框

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.1.11.min.js"></script>
    <style>
        @import url('https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,500,500i,600,600i,700,700i,800,800i');
	html,body {
	height:100%;
	width:100%;
	font-family:'Raleway',sans-serif;
	background-color:#efefef;
	display:table;
	text-align:center;
}
.toast__container {
	display:table-cell;
	vertical-align:middle;
}
.toast__cell {
	display:inline-block;
}
.add-margin {
	margin-top:20px;
}
.toast__svg {
	fill:#fff;
}
.toast {
	text-align:left;
	padding:21px 0;
	background-color:#fff;
	border-radius:4px;
	max-width:500px;
	top:0px;
	position:relative;
	box-shadow:1px 7px 14px -5px rgba(0,0,0,0.2);
}
.toast:before {
	content:'';
	position:absolute;
	top:0;
	left:0;
	width:4px;
	height:100%;
	border-top-left-radius:4px;
	border-bottom-left-radius:4px;
}
.toast__icon {
	position:absolute;
	top:50%;
	left:22px;
	transform:translateY(-50%);
	width:14px;
	height:14px;
	padding:7px;
	border-radius:50%;
	display:inline-block;
}
.toast__type {
	color:#3e3e3e;
	font-weight:700;
	margin-top:0;
	margin-bottom:8px;
}
.toast__message {
	font-size:14px;
	margin-top:0;
	margin-bottom:0;
	.........完整代码请登录后点击上方下载按钮下载查看

网友评论0