[html] 第403天 如何放大点击的区域?
haizhilin2013 opened this issue · 2 comments
haizhilin2013 commented
webVueBlog commented
<div class="button">点我</div>
<style>
.button{
position:relative;
}
.button::after{
content:"";
position:absolute;
top:-10px;
left:-10px;
right:-10px;
bottom:-10px;
}
</style>
longhui520 commented
- 增加透明的边框
- padding:30px;margin:-30px;
- 伪元素法