The zoom
property in CSS can zoom elements
.zoom { zoom: 150%; }
zoom |
Yes | Yes | No | Yes | Yes |
<!DOCTYPE html>
<html>
<style>
img:nth-child(2) {<!--from w w w . ja va2 s.c o m-->
zoom: 150%;
}
img:nth-child(3) {
zoom: 1.8;
}
img:nth-child(4) {
zoom: 0.2;
}
</style>
</head>
<body>
<img src="http://java2s.com/style/demo/border.png">
<img src="http://java2s.com/style/demo/border.png">
<img src="http://java2s.com/style/demo/border.png">
<img src="http://java2s.com/style/demo/border.png">
</body>
</html>