WordPress给你的7B2主题设置一个好看的美化公告

评论:0
今天在访问看文章的时候,发现一款挺好看的公告样式,就去扒了一下。

www.jishuaihaozhe.com_202309151694785625326038.png

可以发布一下重要通知,或是文章跳转之类的,修改前记得保存一下文件,喜欢的小伙伴可以看看!
​使用教程
1、首页模块新增自定义模块
<div  role="alert">
<strong><span >
Hello,宝贝!<sup aria-hidden="true"  role="status" ></sup></span></strong> <span>欢迎您的到来,网站目前在维护中,如访问异常,请稍后访问</span>
<a  href="#"
               rel="nofollow noopener noreferrer" target="_blank">
升级VIP
</a>
</div>
2在7b2主题插入自定义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;
}
/*首页横幅结束*/

#免责声明#

本站提供的一切软件、教程和内容信息仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络收集整理,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。

收藏 申请删除
<<上一篇
2023-05-28

base64加密解密单页HTML

下一篇>>
2023-12-26

思幻二次元风格工作室个人引导页源码

  • 广告

发表评论

网友评论区

V注册会员 L用户等级
R1 条回复
  1. 美兮兮 V 学前班 说道:

    牛逼