css实现图片放大
<template>
<div class="div">
<img
src="../assets/logo.png"
alt=""
/>
</div>
</template>
<style scoped >
.div {
width: 250px;
height: 250px;
border: 1px solid #000 ;
margin: 100px auto;
overflow: hidden;
}
.div img {
cursor: pointer;
transition: all 0.6s;
width: 100%;
height: 100%;
}
.div img:hover {
transform: scale(1.8);
}
</style>