1
我現在正在研究CSS3但在CSS3不工作類中的任何一個可以幫助我如何在css3中放大懸停的任何類或ID?
<!DOCTYPE html>
<html>
<head>
<title>Zoom Hover</title>
<style type="text/css">
@-moz-keyframes 'zoom' {
0%{
height:200px;
width:200px;
}
100% {
width: 1000px;
height: 1000px;
}
}
@-webkit-keyframes 'zoom' {
0%{
height:200px;
width:200px;
}
100% {
width: 1000px;
height: 1000px;
}
}
.aaa{
width:200px;
height:auto;
}
.aaa:hover {
-moz-animation-name: 'zoom' 2s;
}
.aaa:hover {
-webkit-animation: 'zoom' 2s;
}
.aaa{
width:200px;
height:200px;
-moz-transition-duration: 2s; /* firefox */
-webkit-transition-duration: 2s; /* chrome, safari */
-o-transition-duration: 2s; /* opera */
-ms-transition-duration: 2s; /* ie 9 */
}
.aaa:hover {
width: 1000px;
height: 1000px;
}
</style>
</head>
<body>
<div class="aaa"style="width:100px;height:100px;background:red;"></div>
</body>
</html>
有沒有辦法做到這一點任何一個幫助我請,沒有任何 網站對CSS3的學習?
感謝insertusernamehere:您可以通過動畫的變化,而不是實現這一目標更容易 – user2717260