Ripro V2主题美化教程合辑

广告图美化

这就是添加个广告图,然后鼠标悬浮会有个文字提示
<a href="http://www.wphome.cc/user/vip" target="_blank" rel="nofollow noopener noreferrer" data-toggle="tooltip" data-html="true" title="<u>广告:</u>WP之家永久会员限时59元"><img src="https://www.wphome.cc/wp-content/uploads/2022/05/WP之家永久会员59元.gif" style="width:auto;height:150px;margin:0 auto"></a>
效果图如下
Ripro V2主题美化教程合辑

促销推广广告代码

这个就是纯文字的广告,非常好看
<div class="alert alert-success alert-dismissible fade show" role="alert">
  <strong><span class="badge badge-danger">限时优惠</span></strong> WP之家永久会员限时59元,全站主题插件免费下载 | <a href="https://www.wphome.cc/user/vip" class="alert-link" target="_blank">点击开通会员</a>
  <button type="button" class="close" data-dismiss="alert" aria-label="Close">
    <span aria-hidden="true">×</span>
  </button>
</div>
效果图
Ripro V2主题美化教程合辑

自定义CSS代码

这是我自己根据个人喜好自定义的CSS,做个备份,以便日后使用。
.vip {
display: inline-block;
transform: translateY(-12px);
    font-size: .75rem;
    letter-spacing: 0.05em;
background: linear-gradient(to top, #efd3b0 0%, #f9e1be 100%);
    color: #ffffff;
    border-radius: 1rem;
    padding: .15rem .275rem;
    line-height: 1;
    font-weight: bold;
}
 
.new {
    display: inline-block;
    transform: translateY(-12px);
    font-size: .75rem;
    letter-spacing: 0.05em;
    background: linear-gradient(to top, #f308a0 0%, #fb0655 100%);
    color: #ffffff;
    border-radius: 1rem;
    padding: .15rem .275rem;
    line-height: 1;
    font-weight: bold;
}
 
/*菜单标签美化*/
.label {
display: inline-block;
transform: translateY(-12px);
    font-size: .75rem;
    letter-spacing: 0.05em;
background: linear-gradient(to right, #6454ef 0%, #3021ec 100%);
    color: #ffffff;
    border-radius: 1rem;
    padding: .15rem .275rem;
    line-height: 1;
    font-weight: bold;
}


/*演示地址美化*/

.badge-secondary-lighten {
    color: #eef2f7;
    background-color: #533FE9;
    padding: 10px 20px 10px 20px;
}
/*菜单背景尺寸*/
.navbar .nav-list>.menu-item>a {
    font-size: .875rem;
    line-height: 30px;
    margin: 0 10px;
    -webkit-transition: color 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    -o-transition: color 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    transition: color 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}
/*添加菜单按钮*/
.my-custom-menu-button {
border-image: linear-gradient(rgb(0 6 143), rgb(242 66 250)) 1;
background-image: linear-gradient(135deg, #fd7a64 10%, #fb2d2d 100%);
	border-radius: 5px;
}

.my-custom-menu-button a, .my-custom-menu-button a:hover, .my-custom-menu-button a:active {
	color: #ffffff !important;
}

.my-custom-menu-button:hover {
	background-color: #FF4D4D;
}
/*将移动端按钮背景颜色调整为白色*/
.slicknav_menu .menu-item>a {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 14px;
    line-height: 1;
    outline: none;
    padding: 12px 5px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 2px;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #f7f7f700;
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

给TA打赏
共{{data.count}}人
人已打赏
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索