CSS3制作带光晕的网页button--box-shadow
CSS3制作带光晕的网页button--box-shadow
html:
<div class="container"> <button class="btn">A</button> <button class="btn">B</button> <button class="btn">C</button> <button class="btn">D</button> </div>
css:
*{ margin: 0; padding: 0; list-style: none; font-style: normal; } html,body{ width: 100%; height: 100%; } .container{ width: 50%; margin: 100px auto; } .btn{ width: 200px; height: 50px; line-height: 45px; font-size: 30px; text-align: center; color: #fff; background: #ff421f; border: 5px solid #fff; border-radius: 10px; cursor: pointer; margin: 10px 15px; } .btn:hover{ box-shadow: 0 10px 40px 5px #ff421f; }
还没有留言,还不快点抢沙发?