<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>应用transform属性实现平移</title>
<style type="text/css">
.preview
{
background:url(images/style0.gif) no-repeat;
position:absolute;
top:0px;
left:0px;
width:240px;
height:210px;
border:1px #000000 dashed;}
#xy
{
-moz-transform:translate(100px,80px);
-webkit-transform:translate(100px,80px);
-o-transform:translate(100px,80px);
}
</style>
</head>
<body>
<div id="wall"></div>
<div class="preview">
</div>
<div class="preview" id="xy">
</div>
</body>
</html>
29、实例 应用transform属性实现平移
最新推荐文章于 2022-07-04 17:42:12 发布