We would like to know how to do CSS3 Transform Scale.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#main{width:70%; margin:20px auto;}
#main img:hover {<!-- w ww . j ava 2s . co m-->
-webkit-transform: scale(1.1);
-moz-transform: scale(1.1);
-ms-transform: scale(1.1);
-o-transform: scale(1.1);
}
.center{text-align:center;}
</style>
</head>
<body>
<div id="main">
<img class="center" src="http://www.java2s.com/style/download.png">
</div>
</body>
</html>
The code above is rendered as follows: