如何添加底部按钮?

卡尼奶
08-18
如何添加底部按钮?

一、页面&显示-底部设置

如何添加底部按钮?
安全运行:<span id=span_dt_dt style="color: #2F889A;"></span>
<div class="button-container">
  <div class="button-first-row">
    <div class="github-badge">
      <span class="badge-subject">网站托管于</span>
      <a class="bg-cai" href="/" rel="external nofollow" target="_blank">
        卡尼奶服务器
      </a>
    </div>
    <div class="github-badge">
      <span class="badge-subject">网站主题为</span>
      <a class="bg-green" href="/knn-theme" rel="external nofollow" target="_blank">
        卡尼奶主题
      </a>
    </div>
  </div>
  <div class="button-row">
    <div class="github-badge">
      <a class="bg-orange" href="/wp-sitemap.xml" rel="external nofollow" target="_blank">
        站点地图
      </a>
    </div>
    <div class="github-badge">
      <a class="bg-red" href="/" rel="external nofollow" target="_blank">
        隐私声明
      </a>
    </div>
    <div class="github-badge">
      <a class="bg-fen" href="/" rel="external nofollow" target="_blank">
        用户协议
      </a>
    </div>
    <div class="github-badge">
      <a class="bg-purple" href="/" rel="external nofollow" target="_blank">
        关于我们
      </a>
    </div>
  </div>
</div>

二、全局&功能-自定义代码

1、自定义CSS样式

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 整体容器居中 */
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* 由 flex-start 改为 center */
  gap: 8px;
  margin-bottom: 10px;
}
.button-first-row {
  width: 100%;
  display: flex;
  justify-content: center;  /* 由 flex-start 改为 center */
  gap: 8px;
  margin-bottom: 8px;
}
.github-badge {
  display: flex;
  border-radius: 4px;
  font-size: 12px;
  color: #fff;
  line-height: 15px;
  background-color: #abbac3;
  overflow: hidden;
  text-shadow: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.github-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.github-badge .badge-subject {
  display: inline-block;
  background-color: #ffa500;
  padding: 4px 8px 4px 10px;
  font-weight: 600;
}

.github-badge a {
  display: inline-block;
  padding: 4px 10px;
  text-decoration: none;
  color: #fff !important;
  font-weight: 500;
}
.github-badge .bg-cai   { background-image: linear-gradient(120deg, #3ca5f6, #a86af9); }
.github-badge .bg-green { background-color: #3bca6e; }
.github-badge .bg-blue  { background-color: #007bff; }
.github-badge .bg-orange{ background-color: #ff7f50; }
.github-badge .bg-red   { background-color: #f55066; }
.github-badge .bg-fen   { background-color: #e76dcb; }
.github-badge .bg-purple{ background-color: #6a5acd; }
@media screen and (max-width: 767px) {
  .footer-container .button-container .github-badge .badge-subject,
  .footer-container .button-container .github-badge a {
    font-size: 11px !important;
    white-space: nowrap !important;
  }
}

2、自定义javascript代码(可以设置网站运营时间)

function show_date_time(){
window.setTimeout("show_date_time()", 1000);
BirthDay=new Date("1/1/2026 1:1:1");
today=new Date();
timeold=(today.getTime()-BirthDay.getTime());
sectimeold=timeold/1000
secondsold=Math.floor(sectimeold);
msPerDay=24*60*60*1000
e_daysold=timeold/msPerDay
daysold=Math.floor(e_daysold);
e_hrsold=(e_daysold-daysold)*24;
hrsold=Math.floor(e_hrsold);
e_minsold=(e_hrsold-hrsold)*60;
minsold=Math.floor((e_hrsold-hrsold)*60);
seconds=Math.floor((e_minsold-minsold)*60);
span_dt_dt.innerHTML='<font style=color:#C40000>'+daysold+'</font> 天 <font style=color:#C40000>'+hrsold+'</font> 时 <font style=color:#C40000>'+minsold+'</font> 分 <font style=color:#C40000>'+seconds+'</font> 秒';
}
show_date_time();
BirthDay=new Date(“1/1/2026 1:1:1”);
例如:我要设置2026-08-18 开始运营的网站

BirthDay=new Date(“08/18/2026 1:1:1”);
收藏 0
打赏
卡尼奶自动部署:让 WordPress 主题安装变得更简单
上一篇
在线打赏插件
下一篇

发表评论

注册不是必须的

    未登录
    登录后查看我的资料卡~
    如何配置OSS云存储?
    45 0 0

    如何配置OSS云存储?

    一、阿里云配置 二、腾讯云配置 三、配置七牛云
    卡尼奶主题中秋红包来啦
    255 0 0

    卡尼奶主题中秋红包来啦

    中秋佳节到啦,先祝所有卡尼奶用户 中秋快乐,月圆人团圆,网站越做越好! 为了感谢大家一直以来对卡尼奶主题的支持,今天我们准备了中秋祝福红包,送给每一位关注和使用卡尼奶主题的朋友。 本次红包将在 卡尼奶主题官网聊天室 发放,大家可以在指定时间进入聊天室参与抢红包。 红包发放时间: 第一场:12:00第二场:20:00 红包数量有限,先到先得,记得提前进入官网聊天室蹲点,不要错过哦。 卡尼奶主题一路走 […]
    商家入驻插件介绍
    145 0 1

    商家入驻插件介绍

    卡尼奶商家入驻插件:面向多商户商城的入驻、经营与结算系统 核心亮点
    扫描二维码
    扫描二维码
    社交账号登录
    {{ unread>99?'99+':unread }}
    {{ room ? room.name : '卡尼奶聊天室' }}
    {{ wsOk?'WebSocket 已连接':(wsStatus==='connecting'?'连接中':'轮询模式') }} · {{ online }} 人在线
    全部群聊
    {{ r.name }}
    {{ r.online }} 在线
    {{ r.unread }}
    {{ room.announcement }}
    {{ booting ? '聊天室加载中…' : '聊天消息加载中…' }}
    {{ e }}
    内容审核已开启 · 请勿发布违规内容 发送
    在线成员 · {{ members.length }}
    {{ u.name }}管理
    {{ rpDetail.sender.name }} 的红包
    {{ rpDetail.rp.message }}
    {{ rpDetail.rp.luck?'拼手气红包':'普通红包' }} · 已领 {{ rpDetail.rp.taken }}/{{ rpDetail.rp.num }} 个
    {{ l.user.name }}¥ {{ Number(l.amount).toFixed(2) }}
    发红包
    普通红包 拼手气
    {{ rpForm.luck ? '总金额' : '红包金额' }}
    ¥
    红包个数
    {{ rpForm.num }} 个
    祝福语({{ rpForm.message.length }}/20)
    余额支付 ¥ {{ Number(me.balance||0).toFixed(2) }}
    开通会员
    在手机上浏览此页面