HTML点击盒子有阴影,当用户点击/触摸时,CSS盒子阴影效果

.ico-btn {

-webkit-user-select: none; margin-right: 0px;

-webkit-box-shadow: rgba(0, 0, 0, 0.298039) 0px 2px 10px 0px, rgba(0, 0, 0, 0.0980392) 0px 0px 1px 0px, rgba(255, 255, 255, 0.247059) 0px 1px 0px 0px inset, rgba(0, 0, 0, 0.14902) 0px -1px 0px 0px inset;

-webkit-font-smoothing: antialiased;

border-bottom-left-radius: 25%;

border-bottom-right-radius: 25%;

border-top-left-radius: 25%;

border-top-right-radius: 25%;

box-shadow: rgba(0, 0, 0, 0.298039) 0px 2px 10px 0px, rgba(0, 0, 0, 0.0980392) 0px 0px 1px 0px, rgba(255, 255, 255, 0.247059) 0px 1px 0px 0px inset, rgba(0, 0, 0, 0.14902) 0px -1px 0px 0px inset;

cursor: pointer;

display: block;

font-family: Roboto, Arial, sans-serif;

font-size: 140px;

font-weight: normal;

height: 177px; /*167px;*/

line-height: 150px;

min-width: 0px;

padding: 40px 0 0 0; /*30*/

text-align: center;

white-space: nowrap;

width: 220px;/*200*/

z-index: 2;

margin: 0 auto;

color:#fff;

}

.ico-btn.red { background-color: rgb(219, 68, 55);

border-bottom-color:#ab2318;

border-bottom-left-radius: 25%;

border-bottom-right-radius: 25%;

border-bottom-style: solid;

border-bottom-width: 1px;

border-left-color: rgb(0, 0, 0);

border-left-style: none;

border-left-width: 0px;

border-right-color: rgb(0, 0, 0);

border-right-style: none;

border-right-width: 0px;

border-top-color:#ef675c;

border-top-left-radius: 25%;

border-top-right-radius: 25%;

border-top-style: solid;

border-top-width: 2px;

transition: all .1s linear;

}

.ico-btn.red:hover {

\t background-color: #D05944;

\t -webkit-transition: background-color .25s ease-in-out;

\t -moz-transition: background-color .25s ease-in-out;

\t -o-transition: background-color .25s ease-in-out;

\t transition: background-color .25s ease-in-out;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值