CSS3弹出提示框样式代码



229 914 305



特效描述:CSS3 弹出提示框样式,CSS3弹出提示框内置功能按钮

代码结构

1. 引入CSS

<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css" media="screen" type="text/css" />

2. 引入JS

<script src='js/jquery.js'></script>
<script src="js/index.js"></script>

3. HTML代码

<div class="Message" id="js-timer">
	<div class="Message-icon">
		<i class="fa fa-bell-o"></i>
	</div>
	<div class="Message-body">
		<p>This is a simple, but friendly, notification.</p>
		<p class="u-italic">It will disappear within a few seconds.</p>
	</div>
	<button class="Message-close js-messageClose"><i class="fa fa-times"></i></button>
</div>
<div class="Message Message--orange">
	<div class="Message-icon">
		<i class="fa fa-exclamation"></i>
	</div>
	<div class="Message-body">
		<p>This is a simple notification with a brighter color...</p>
		<p>If you bring you mouse here you can close it manually.</p>
	</div>
	<button class="Message-close js-messageClose"><i class="fa fa-times"></i></button>
</div>
<div class="Message Message--green">
	<div class="Message-icon">
		<i class="fa fa-check"></i>
	</div>
	<div class="Message-body">
		<p>This is a message telling you that everything is a-okay!</p>
		<p>Good job, and good riddance.</p>
	</div>
	<button class="Message-close js-messageClose"><i class="fa fa-times"></i></button>
</div>
<div class="Message Message--red">
	<div class="Message-icon">
		<i class="fa fa-times"></i>
	</div>
	<div class="Message-body">
		<p>This is a notification that something went wrong...</p>
		<button class="Message-button" id="js-helpMe">Yikes, help me please!</button>
		<button class="Message-button js-messageClose">Don't care.</button>
	</div>
	<button class="Message-close js-messageClose"><i class="fa fa-times"></i></button>
</div>
<div class="Message">
	<div class="Message-icon">
		<i class="fa fa-bell-o"></i>
	</div>
	<div class="Message-body">
		<p>Do you know that you can assign status and relation to a company right in the visit list?</p>
		<button class="Message-button" id="js-showMe">Show me how</button>
		<button class="Message-button js-messageClose">Nah, not interested</button>
	</div>
	<button class="Message-close js-messageClose"><i class="fa fa-times"></i></button>
</div>
<div class="Message Message--orange">
	<div class="Message-icon">
		<i class="fa fa-exclamation"></i>
	</div>
	<div class="Message-body">
		<p>You haven't authorized your LinkedIn account. Would you like some help with that?</p>
		<p class="u-italic">With your account connected we can show you what connections you have at a company that visited your site!</p>
		<button class="Message-button" id="js-authMe">Authorize!</button>
		<button class="Message-button js-messageClose">I'll just keep using carrier pigeons</button>
	</div>
	<button class="Message-close js-messageClose"><i class="fa fa-times"></i></button>
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 右键菜单 图片头像上传 文字提示框 文件上传 提示框/弹出层 文本框 layer 下拉框 lightbox 复选 单选 Tooltip工具提示框 登录框 浮动提示框 注册框 html5弹窗动画 搜索框 验证码 二级联动 三级联动 城市选择 value赋值 筛选 按钮控制 购物车 颜色选择 表单提交 全选/反选 添加删除 添加标签 密码强度验证 表单验证 html5按钮动画 按钮样式 密码修改设置 弹出层拖动 窗口提示框 切换按钮 form表单

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到