css实现图片翻转

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
.tu1{ background:url(6.png) no-repeat center; width:290px; height:427px; }
.tu1:hover {transform: rotateY(180deg);transition: all 1.2s ease; background:url(7.jpg) no-repeat center;}

</style>
</head>

<body>

<div class="tu1"></div>

</body>
</html>

posted @ 2017-05-24 17:23  寻觅聪  阅读(1585)  评论(0编辑  收藏  举报