如何添加底部按钮?

卡尼奶
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; }

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 主题安装变得更简单
上一篇
在线打赏插件免费开源
下一篇

发表评论

注册不是必须的

未登录
登录后查看我的资料卡~
最新文章
ces哈哈哈哈 拼团中
¥3
26 0 0

ces哈哈哈哈

cess梵蒂冈法国官方大富大贵
卡易信对接商品插件 会员免费 付费下载
¥88
110 2 1

卡易信对接商品插件

登录卡易信前台
微信小程序登录源码 付费阅读
¥99
158 0 2

微信小程序登录源码

登录微信公众平台:https://mp.weixin.qq.com/ 如果没有小程序的,自行注册小程序 下载微信开发者工具,打开导入小程序代码 按照我图片格式添加即可,必须添加 添加完成后,返回刚才页面,点击发布按钮 上线
扫描二维码
扫描二维码
社交账号登录
{{ 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) }}
开通会员
在手机上浏览此页面