9款css3 tooltips鼠标悬停显示消息提示框样式代码



244 973 325



特效描述:css3 tooltips 鼠标悬停显示消息 提示框样式,9款css3 tooltips鼠标悬停显示消息提示框样式代码

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/tooltip-classic.css" />
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/tooltip-classic.css" />

2. 引入JS

<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>

3. HTML代码

<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<title>Tooltip Styles Inspiration | Classic</title>
<meta name="description" content="Various hover tooltip styles, shapes and effects for your inspiration" />
<meta name="keywords" content="tooltip, effect, style, inspiration, css, svg, animation" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="../favicon.ico">
<!--必要样式表-->
<!--[if IE]>
<![endif]-->
</head>
<body class="color-1">
<div class="content">
	<nav class="codrops-demos">
		<a class="current-demo" href="index.html">Classic</a>
		<a href="round.html">Round</a>
		<a href="curved.html">Curved</a>
		<a href="sharp.html">Sharp</a>
		<a href="bloated.html">Bloated</a>
		<a href="box.html">Box</a>
		<a href="comic.html">Comic</a>
		<a href="line.html">Line</a>						
		<a href="flip.html">Flip</a>
	</nav>
	<div class="dummy dummy-text">
		<p>Tesseract, finite but unbounded take root and flourish, <span class="tooltip tooltip-effect-1"><span class="tooltip-item">Euclid</span><span class="tooltip-content clearfix"><img src="img/Euclid.png" /><span class="tooltip-text"><strong>Euclid</strong>, also known as Euclid of Alexandria, was a Greek mathematician, often referred to as the "Father of Geometry". He was active in Alexandria during the reign of Ptolemy I. <a href="http://en.wikipedia.org/wiki/Euclid">Wikipedia</a></span></span></span> rogue laws of physics, star stuff harvesting star light, encyclopaedia galactica are creatures of the cosmos the only home we've ever known ship of the imagination prime number <span class="tooltip tooltip-effect-2"><span class="tooltip-item">quasar</span><span class="tooltip-content clearfix"><img src="img/Quasar.png" /><span class="tooltip-text"><strong>Quasars</strong> are believed to be powered by accretion of material into supermassive black holes in the nuclei of distant galaxies, making these luminous versions of the general... <a href="http://en.wikipedia.org/wiki/Quasar">Wikipedia</a></span></span></span> courage of our questions.</p>
		<p>Kindling the energy shown in Orion's sword, rich in heavy atoms shores of the cosmic ocean kindling the energy <span class="tooltip tooltip-effect-3"><span class="tooltip-item">Euclid</span><span class="tooltip-content clearfix"><img src="img/Euclid.png" /><span class="tooltip-text"><strong>Euclid</strong>, also known as Euclid of Alexandria, was a Greek mathematician, often referred to as the "Father of Geometry". He was active in Alexandria during the reign of Ptolemy I. <a href="http://en.wikipedia.org/wiki/Euclid">Wikipedia</a></span></span></span> hidden in matter. Emerged into consciousness paroxysm of global death? Shores of the cosmic ocean. Globular star cluster a still more glorious dawn awaits. Extraordinary claims require extraordinary evidence citizens of distant epochs with pretty stories for which there's little good evidence. </p>
		<p>Prime number <span class="tooltip tooltip-effect-4"><span class="tooltip-item">quasar</span><span class="tooltip-content clearfix"><img src="img/Quasar.png" /><span class="tooltip-text"><strong>Quasars</strong> are believed to be powered by accretion of material into supermassive black holes in the nuclei of distant galaxies, making these luminous versions of the general... <a href="http://en.wikipedia.org/wiki/Quasar">Wikipedia</a></span></span></span> courage of our questions kindling the energy <span class="tooltip tooltip-effect-5"><span class="tooltip-item">Euclid</span><span class="tooltip-content clearfix"><span class="tooltip-text"><strong>Euclid</strong>, also known as Euclid of Alexandria, was a Greek mathematician, often referred to as the "Father of Geometry". He was active in Alexandria during the reign of Ptolemy I. <a href="http://en.wikipedia.org/wiki/Euclid">Wikipedia</a></span></span></span> shown in Orion's sword. Extraordinary claims require extraordinary evidence citizens of distant epochs with pretty stories for which there's little good evidence.</p>
		<p><small><strong>Image credit</strong> <a href="http://www.spacetelescope.org/images/heic1116a/">Quasar HE 1104-1805</a> by NASA, ESA and J.A. Muñoz (University of Valencia)</small></p>
	</div>
</div>
</body>
</html>



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


热门标签: 瀑布流 收藏 预览 自适应页面大小 响应式区块列表布局 摇摆 烟花 清单样式 照相机 注释 下划线 结构图 鼠标悬停 条形码 弹幕 画板 朋友圈样式 红包 css绘制样式 支付 图文布局 右键菜单 二维码 文字提示框 地图 提示框/弹出层 计算器 layer 计时器 lightbox 桌面 跳转 Tooltip工具提示框 步骤 浮动提示框 键盘 html5弹窗动画 签到 分享 点赞 投票 雪花 打印 答题 震动 图表 鼠标滑过 抽奖 表情 qq空间 头像截图 星星打分评分 编辑器 播放器 电子杂志 排行榜 分页翻页 排序 表格隔行变色 table表格 进度条 多功能 弹出层拖动 窗口提示框 滑动星星打分 其他更多

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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