<div class="dupian">
<img src="black.jpg" alt="" width="300" height="300" />
<img src="blue.jpg" alt="" width="300" height="300" />
<img src="red.jpg" alt="" width="300" height="300" />
</div>
为什么3张图片还是重叠在一起,没任何变化?
<img src="black.jpg" alt="" width="300" height="300" />
<img src="blue.jpg" alt="" width="300" height="300" />
<img src="red.jpg" alt="" width="300" height="300" />
</div>
为什么3张图片还是重叠在一起,没任何变化?
2015-07-15
.dupian img:first-child{
transform:rotate(5deg);
}
.dupian img:last-child{
transform:rotate(-5deg);
}
</style>
</head>
<body>
transform:rotate(5deg);
}
.dupian img:last-child{
transform:rotate(-5deg);
}
</style>
</head>
<body>
2015-07-15
.dupian{ width:400px; height:400px; margin:2rem auto;}
.dupian img{
position:absolute; border:20px solid #666; box-sizing:border-box; box-shadow:5px 5px 3px rgba(0,0,0,0.3); transform-origin:center center; transition:transform 1.0s ease;
}
.dupian img{
position:absolute; border:20px solid #666; box-sizing:border-box; box-shadow:5px 5px 3px rgba(0,0,0,0.3); transform-origin:center center; transition:transform 1.0s ease;
}
2015-07-15