php样式优美的错误提示框,Bootstrap3 不错的一款信息确认/错误提示框

CSS

语言:

CSSSCSS

确定

body {

overflow: hidden;

}

.background {

position: absolute;

width: 100%;

height: 100%;

top: 0;

left: 0;

-webkit-filter: blur(5px);

filter: blur(5px);

background-image: url("/assets/landing.jpg");

background-size: contain;

}

.background::after {

content: "";

position: absolute;

height: 100%;

width: 100%;

top: 0;

left: 0;

background-color: rgba(0, 0, 0, 0.2);

}

.modalbox.success,

.modalbox.error {

-webkit-border-radius: 4px;

-moz-border-radius: 4px;

border-radius: 4px;

margin-top: 15%;

background: #fff;

padding: 25px 25px 15px;

border: 1px solid #aaa;

text-align: center;

}

.modalbox.success.animate .icon,

.modalbox.error.animate .icon {

-webkit-animation: fall-in 0.75s;

-moz-animation: fall-in 0.75s;

-o-animation: fall-in 0.75s;

animation: fall-in 0.75s;

}

.modalbox.success h1,

.modalbox.error h1 {

font-family: 'Montserrat', sans-serif;

}

.modalbox.success p,

.modalbox.error p {

font-family: 'Open Sans', sans-serif;

}

.modalbox.success button,

.modalbox.error button,

.modalbox.success button:active,

.modalbox.error button:active,

.modalbox.success button:focus,

.modalbox.error button:focus {

-webkit-transition: all 0.1s ease-in-out;

transition: all 0.1s ease-in-out;

-webkit-border-radius: 0;

-moz-border-radius: 0;

border-radius: 0;

margin-top: 15px;

width: 80%;

background: transparent;

color: #0a6;

border-color: #0a6;

outline: none;

}

.modalbox.success button:hover,

.modalbox.error button:hover,

.modalbox.success button:active:hover,

.modalbox.error button:active:hover,

.modalbox.success button:focus:hover,

.modalbox.error button:focus:hover {

color: #fff;

background: #0a6;

border-color: transparent;

}

.modalbox.success .icon,

.modalbox.error .icon {

position: relative;

margin: 0 auto;

margin-top: -75px;

background: #0a6;

height: 100px;

width: 100px;

border-radius: 50%;

}

.modalbox.success .icon span,

.modalbox.error .icon span {

postion: absolute;

font-size: 4em;

color: #fff;

text-align: center;

padding-top: 20px;

}

.modalbox.error button,

.modalbox.error button:active,

.modalbox.error button:focus {

color: #ff424f;

border-color: #ff424f;

}

.modalbox.error button:hover,

.modalbox.error button:active:hover,

.modalbox.error button:focus:hover {

color: #fff;

background: #ff424f;

}

.modalbox.error .icon {

background: #ff424f;

}

.modalbox.error .icon span {

padding-top: 25px;

}

.center {

float: none;

/* stupid browser compat. smh */

margin-left: auto;

margin-right: auto;

}

.center .change {

clearn: both;

display: block;

font-size: 10px;

color: #ccc;

margin-top: 10px;

}

@-webkit-keyframes fall-in {

0% {

-ms-transform: scale(3, 3);

-webkit-transform: scale(3, 3);

transform: scale(3, 3);

opacity: 0;

}

50% {

-ms-transform: scale(1, 1);

-webkit-transform: scale(1, 1);

transform: scale(1, 1);

opacity: 1;

}

60% {

-ms-transform: scale(1.1, 1.1);

-webkit-transform: scale(1.1, 1.1);

transform: scale(1.1, 1.1);

}

100% {

-ms-transform: scale(1, 1);

-webkit-transform: scale(1, 1);

transform: scale(1, 1);

}

}

@-moz-keyframes fall-in {

0% {

-ms-transform: scale(3, 3);

-webkit-transform: scale(3, 3);

transform: scale(3, 3);

opacity: 0;

}

50% {

-ms-transform: scale(1, 1);

-webkit-transform: scale(1, 1);

transform: scale(1, 1);

opacity: 1;

}

60% {

-ms-transform: scale(1.1, 1.1);

-webkit-transform: scale(1.1, 1.1);

transform: scale(1.1, 1.1);

}

100% {

-ms-transform: scale(1, 1);

-webkit-transform: scale(1, 1);

transform: scale(1, 1);

}

}

@-o-keyframes fall-in {

0% {

-ms-transform: scale(3, 3);

-webkit-transform: scale(3, 3);

transform: scale(3, 3);

opacity: 0;

}

50% {

-ms-transform: scale(1, 1);

-webkit-transform: scale(1, 1);

transform: scale(1, 1);

opacity: 1;

}

60% {

-ms-transform: scale(1.1, 1.1);

-webkit-transform: scale(1.1, 1.1);

transform: scale(1.1, 1.1);

}

100% {

-ms-transform: scale(1, 1);

-webkit-transform: scale(1, 1);

transform: scale(1, 1);

}

}

@-webkit-keyframes plunge {

0% {

margin-top: -100%;

}

100% {

margin-top: 25%;

}

}

@-moz-keyframes plunge {

0% {

margin-top: -100%;

}

100% {

margin-top: 25%;

}

}

@-o-keyframes plunge {

0% {

margin-top: -100%;

}

100% {

margin-top: 25%;

}

}

@-moz-keyframes fall-in {

0% {

-ms-transform: scale(3, 3);

-webkit-transform: scale(3, 3);

transform: scale(3, 3);

opacity: 0;

}

50% {

-ms-transform: scale(1, 1);

-webkit-transform: scale(1, 1);

transform: scale(1, 1);

opacity: 1;

}

60% {

-ms-transform: scale(1.1, 1.1);

-webkit-transform: scale(1.1, 1.1);

transform: scale(1.1, 1.1);

}

100% {

-ms-transform: scale(1, 1);

-webkit-transform: scale(1, 1);

transform: scale(1, 1);

}

}

@-webkit-keyframes fall-in {

0% {

-ms-transform: scale(3, 3);

-webkit-transform: scale(3, 3);

transform: scale(3, 3);

opacity: 0;

}

50% {

-ms-transform: scale(1, 1);

-webkit-transform: scale(1, 1);

transform: scale(1, 1);

opacity: 1;

}

60% {

-ms-transform: scale(1.1, 1.1);

-webkit-transform: scale(1.1, 1.1);

transform: scale(1.1, 1.1);

}

100% {

-ms-transform: scale(1, 1);

-webkit-transform: scale(1, 1);

transform: scale(1, 1);

}

}

@-o-keyframes fall-in {

0% {

-ms-transform: scale(3, 3);

-webkit-transform: scale(3, 3);

transform: scale(3, 3);

opacity: 0;

}

50% {

-ms-transform: scale(1, 1);

-webkit-transform: scale(1, 1);

transform: scale(1, 1);

opacity: 1;

}

60% {

-ms-transform: scale(1.1, 1.1);

-webkit-transform: scale(1.1, 1.1);

transform: scale(1.1, 1.1);

}

100% {

-ms-transform: scale(1, 1);

-webkit-transform: scale(1, 1);

transform: scale(1, 1);

}

}

@keyframes fall-in {

0% {

-ms-transform: scale(3, 3);

-webkit-transform: scale(3, 3);

transform: scale(3, 3);

opacity: 0;

}

50% {

-ms-transform: scale(1, 1);

-webkit-transform: scale(1, 1);

transform: scale(1, 1);

opacity: 1;

}

60% {

-ms-transform: scale(1.1, 1.1);

-webkit-transform: scale(1.1, 1.1);

transform: scale(1.1, 1.1);

}

100% {

-ms-transform: scale(1, 1);

-webkit-transform: scale(1, 1);

transform: scale(1, 1);

}

}

@-moz-keyframes plunge {

0% {

margin-top: -100%;

}

100% {

margin-top: 15%;

}

}

@-webkit-keyframes plunge {

0% {

margin-top: -100%;

}

100% {

margin-top: 15%;

}

}

@-o-keyframes plunge {

0% {

margin-top: -100%;

}

100% {

margin-top: 15%;

}

}

@keyframes plunge {

0% {

margin-top: -100%;

}

100% {

margin-top: 15%;

}

}

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值