!
也想出现在这里? 联系我们
信息

B2美化合集

评论框添加图片背景特效

插入子主题style.css里面

/*评论背景图开始*/
.com-form-textarea textarea {background-color:transparent;background:linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)),url(https://www.atbkw.cn/wp-content/uploads/aotian/qita/pinglu.png) right 10px bottom 10px no-repeat;-moz-transition:ease-in-out 0.45s;-webkit-transition:ease-in-out 0.45s;-o-transition:ease-in-out 0.45s;-ms-transition:ease-in-out 0.45s;transition:ease-in-out 0.45s;}
.com-form-textarea textarea:focus {background-position-y:789px;-moz-transition:ease-in-out 0.45s;-webkit-transition:ease-in-out 0.45s;-o-transition:ease-in-out 0.45s;-ms-transition:ease-in-out 0.45s;transition:ease-in-out 0.45s;}
/*评论背景图结束*/

 

b2美化之首页促销公告横幅

子主题style.css

/*首页横幅开始*/
.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-dismissible {
    padding-right: 3rem;
}
.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}

@media (prefers-reduced-motion: reduce){
.fade {
    transition: none;
}
}
.fade {
    transition: opacity .15s linear;
}
.bg-danger {
    background-color: #dc3545!important;
}.badge {
    display: inline-block;
    padding: .35em .65em;
    font-size: .75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
}
.bg-warning {
    background-color: #ffc107!important;
}
.text-dark {
    color: #212529!important;
}.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 1.25rem 1rem;
}
.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: .25em .25em;
    color: #000;
    border: 0;
    border-radius: .25rem;
    opacity: .5;
}

@media (prefers-reduced-motion: reduce){
.spinner-border, .spinner-grow {
    -webkit-animation-duration: 1.5s;
    animation-duration: 1.5s;
}
}

.spinner-grow-sm {
    width: 1rem;
    height: 1rem;
}.spinner-grow {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -.125em;
    background-color: currentColor;
    border-radius: 50%;
    opacity: 0;
    -webkit-animation: .75s linear infinite spinner-grow;
    animation: .75s linear infinite spinner-grow;
}.small, small {
    font-size: .875em;
}
@keyframes spinner-grow {
  0% {
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: none;
  }
}

.btn-close:hover {
    color: #000;
    text-decoration: none;
    opacity: .75;
}

sup.spinner-grow.spinner-grow-sm.ml-1.small {
  
    margin-left: 4px;
   
    margin-bottom: 4px;
}
/*首页横幅结束*/

 

首页模块自定义HTML

 

                    <div class="alert alert-warning alert-dismissible fade show" role="alert">
<strong><span class="badge bg-danger">
Hello,大佬!<sup aria-hidden="true" class="spinner-grow spinner-grow-sm ml-1 small" role="status" style=" width: .5rem; height: .5rem; "></sup></span></strong> <span>【限时打折】---终身VIP原价168,现只要88元,全站资源免费看任意下,别错过哦!没钱也没关系,全站大部分资源可白嫖。</span>
<a class="badge bg-warning text-dark" href="https://hutong.icu/vips"
               rel="nofollow noopener noreferrer" target="_blank">
升级VIP
</a>
</div>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

B2美化WordPress

WordPress网站地图SiteMap模板页

2022-4-8 13:03:49

B2美化WordPress

简码实列

2022-4-11 20:58:31

!
也想出现在这里? 联系我们
信息
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索