鼠标悬浮放大盒子

效果

在这里插入图片描述

代码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0123)https://www.17sucai.com/preview/171388/2014-09-11/%E6%94%BE%E5%A4%A7%E7%9A%84%E6%8C%89%E9%92%AE%E6%95%88%E6%9E%9C/demo.html -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>slideOutButton</title>

<style>
* {
  margin: 0;
  padding: 0;
}

.clearfix:before, .clearfix:after {content: "";display: block;}
.clearfix:after{clear:both;overflow: hidden;}
.clearfix {*zoom: 1;}

body {
  font-family: Arial;
  background: rgb(22,55,85) url(images/html.jpg) repeat-x 0 0;;
}

ul {
  width: 880px;
  padding: 0 30px;
  margin: 50px auto;
}

ul li {
  float: left;
  width: 180px;
  padding: 19px;
  list-style: none;
  background-color: #fff;
  border: 1px solid rgba(223,231,239, .7);
  color: rgb(32,40,48);
  text-shadow: 0 1px 1px rgb(255,255,255);
  font-size: 14px;
  transition: all .2s ease;
}

ul li:hover{
  -webkit-transform: scale(2);
	  -moz-transform: scale(2);
			transform: scale(2);
  -webkit-border-radius: 8px;
	  -moz-border-radius: 8px;
			border-radius: 8px;
  -webkit-box-shadow: 0 -1px 10px rgba(0,0,0,.5);
	  -moz-box-shadow: 0 -1px 10px rgba(0,0,0,.5);
			box-shadow: 0 -1px 10px rgba(0,0,0,.5);
}

ul li h4 {
  height: 40px;
  margin-bottom: 15px;
  line-height: 40px;
  font-size: 16px;
  text-align: center;
  border-bottom: 1px solid rgba(223,231,239, .7);
}

ul li p {
  text-align: center;
}

ul li p.btn a {
  display: inline-block;
  padding: 10px 40px;
  margin-top: 15px;
  text-shadow: 0 1px 1px rgba(32,40,48,.8);
  text-decoration: none;
  color: rgb(255,255,255);
  background-color: rgb(229,195,85);
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(229,195,85)), to(rgb(187,160,71)));
  background-image: -moz-linear-gradient(left top, left bottom, rgb(229,195,85), rgb(187,160,71));
  background-image: linear-gradient(left top, left bottom, rgb(229,195,85), rgb(187,160,71));
  -webkit-border-radius: 8px;
	  -moz-border-radius: 8px;
			border-radius: 8px;
  transition: all .2s ease;
}

ul li p.btn a:hover {
  -webkit-box-shadow: 0 -1px 10px rgba(0,0,0,.5);
	  -moz-box-shadow: 0 -1px 10px rgba(0,0,0,.5);
			box-shadow: 0 -1px 10px rgba(0,0,0,.5);
}

ul li p.btn-yellow a {
  background-color: rgb(218,109,14);
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(255,153,0)), to(rgb(190,75,26)));
  background-image: -moz-linear-gradient(left top, left bottom, rgb(255,153,0), rgb(190,75,26));
  background-image: linear-gradient(left top, left bottom, rgb(255,153,0), rgb(190,75,26));
}

ul li p.btn-red a {
  background-color: rgb(188,72,72);
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(188,72,72)), to(rgb(126,49,49)));
  background-image: -moz-linear-gradient(left top, left bottom, rgb(188,72,72), rgb(126,49,49));
  background-image: linear-gradient(left top, left bottom, rgb(188,72,72), rgb(126,49,49));
}

ul li p.btn-purple a {
  background-color: rgb(122,104,166);
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(122,104,166)), to(rgb(91,78,127)));
  background-image: -moz-linear-gradient(left top, left bottom, rgb(122,104,166), rgb(91,78,127));
  background-image: linear-gradient(left top, left bottom, rgb(122,104,166), rgb(91,78,127));
}
</style>
</head>
<body>

<ul class="clearfix">
	<li>
		<h4>what?</h4>
		<p>If you want to sell sugar water for the rest of my life or want a chance to change the world</p>
		<p>If you want to sell sugar water for the rest of my life or want a chance to change the world</p>
		<p>@chic</p>
		<p class="btn"><a href="https://www.17sucai.com/preview/171388/2014-09-11/%E6%94%BE%E5%A4%A7%E7%9A%84%E6%8C%89%E9%92%AE%E6%95%88%E6%9E%9C/demo.html">you see?<br>Yes I see!</a></p>
	</li>
	<li>
		<h4>what?</h4>
		<p>If you want to sell sugar water for the rest of my life or want a chance to change the world</p>
		<p>If you want to sell sugar water for the rest of my life or want a chance to change the world</p>
		<p>@chic</p>
		<p class="btn btn-yellow"><a href="https://www.17sucai.com/preview/171388/2014-09-11/%E6%94%BE%E5%A4%A7%E7%9A%84%E6%8C%89%E9%92%AE%E6%95%88%E6%9E%9C/demo.html">you see?<br>Yes I see!</a></p>
	</li>
	<li>
		<h4>what?</h4>
		<p>If you want to sell sugar water for the rest of my life or want a chance to change the world</p>
		<p>If you want to sell sugar water for the rest of my life or want a chance to change the world</p>
		<p>@chic</p>
		<p class="btn btn-red"><a href="https://www.17sucai.com/preview/171388/2014-09-11/%E6%94%BE%E5%A4%A7%E7%9A%84%E6%8C%89%E9%92%AE%E6%95%88%E6%9E%9C/demo.html">you see?<br>Yes I see!</a></p>
	</li>
	<li>
		<h4>what?</h4>
		<p>If you want to sell sugar water for the rest of my life or want a chance to change the world</p>
		<p>If you want to sell sugar water for the rest of my life or want a chance to change the world</p>
		<p>@chic</p>
		<p class="btn btn-purple"><a href="https://www.17sucai.com/preview/171388/2014-09-11/%E6%94%BE%E5%A4%A7%E7%9A%84%E6%8C%89%E9%92%AE%E6%95%88%E6%9E%9C/demo.html">you see?<br>Yes I see!</a></p>
	</li>
</ul>


</body></html>
  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值