清除模糊效果html,HTML5 CSS3模糊效果(毛玻璃)的按钮

CSS

语言:

CSSSCSS

确定

html,

body {

width: 100%;

height: 100%;

overflow: hidden;

margin: 0;

}

html #container,

body #container {

width: 100%;

height: 100%;

position: relative;

padding: 5% auto;

text-align: center;

background: url("/uploads/161001/normal1.jpg") no-repeat center;

background-size: cover;

}

html .btn,

body .btn {

width: 280px;

height: 56px;

display: inline-block;

position: relative;

top: 20%;

margin: 16px;

overflow: hidden;

background: transparent;

border: 2px solid white;

color: white;

font-size: 16px;

cursor: pointer;

-webkit-backface-visibility: hidden;

}

html .btn:focus,

body .btn:focus {

outline: none;

}

html .btn:before,

body .btn:before {

content: "";

height: 110%;

position: absolute;

top: -4px;

left: -4px;

right: -4px;

background: url("/uploads/161001/normal1.jpg") no-repeat;

background-size: cover;

background-attachment: fixed;

background-position: 50%;

}

html .btn span,

body .btn span {

position: absolute;

top: 50%;

right: 0;

left: 0;

transform: translateY(-50%);

z-index: 9;

}

html .btn#btn-1:before,

body .btn#btn-1:before {

transition: all 0.3s ease;

}

html .btn#btn-1:hover:before,

body .btn#btn-1:hover:before {

-webkit-filter: blur(4px);

filter: blur(4px);

}

html .btn#btn-2:before,

body .btn#btn-2:before {

transition: all 0.3s ease;

-webkit-filter: blur(4px);

filter: blur(4px);

}

html .btn#btn-2:hover:before,

body .btn#btn-2:hover:before {

-webkit-filter: blur(0);

filter: blur(0);

}

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值