鼠标滑过图片缩放比例css3代码

admin 372 0
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>鼠标滑过图片缩放比例css3代码</title>
</head>
<style type="text/css">
.img_scale{width:500px;height:200px;}
img:hover{-webkit-transform:scale(1.1);-moz-transform: scale(1.1);
-ms-transform: scale(1.1);transform:scale(1.1);}
</style>
<body>
<div class="img_scale">
<img src="1.jpg"/>
<p>鼠标滑过图片时放大2.1倍!</p>
<p>-ms-transform: scale(2.1);            //-ms代表ie内核识别码
-moz-transform: scale(2.1);             //-moz代表火狐内核识别码
-webkit-transform: scale(2.1);         //-webkit代表谷歌内核识别码
-o-transform: scale(2.1);             //-o代表欧朋【opera】内核识别码
transform: scale(2.1);               //统一标识语句</p>
</div>
</body>
</html>
点击查看关于成都富士康官方直招最新信息!

发布评论 0条评论)

还木有评论哦,快来抢沙发吧~