<template>
<div style="width: 100%;height: 100vh;">
<div class="box" style="margin: 50px auto;text-align: center;">
按钮
</div>
</div>
</template>
<script>
export default {
name: "index"
}
</script>
<style scoped>
.box {
width: 200px;
height: 150px;
background-color: #00dc00;
color: #ffff00;
}
.box:hover{
box-shadow: 0px 0px 20px #008000;
}
</style>
【前端CSS】鼠标移动到按钮加阴影特效
最新推荐文章于 2024-06-17 03:14:49 发布