Skip to content
0

个人简介座右铭不居中问题

个人简介座右铭不居中问题

环境

Teek@1.5.0-2025.9.23 版本上测试

自己的开源库《vitepress-theme-teek-one》 --(克隆自 作者Teeker的文档风开源库《vitepress-theme-teek-docs-template》)

2025年9月25日测试

问题

个人简介座右铭不居中问题。

image-20250925092902866

解决

编辑docs\.vitepress\theme\style\var.scss文件:

scss
// --------------------------------------------------------------------------
// 解决个人简介座右铭不居中问题
// 定义变量
$white: #ffffff;
// 首页卡片栏博主信息
.tk-my__blogger {
  .name,
  .slogan {
    color: $white; // 博主名称和标语颜色
    display: flex; // 水平居中
    justify-content: center; // 水平居中
  }
}
// --------------------------------------------------------------------------

效果

已经被修复拉。😊

image-20250925095056729

结束。

最近更新