MediaWiki:Common.css:修订间差异

来自心灵终结资料站
跳转到导航 跳转到搜索
无编辑摘要
Lyx讨论 | 贡献
无编辑摘要
第1行: 第1行:
/* 悬停时放大并变色 */
/* 为特定区域的链接添加特效,这里以 "a" 标签为例,你可以根据需要限制范围 */
a:hover {
a:hover {
text-decoration: none;
text-decoration: none;
     /* 放大到原来的1.1倍 */
     font-weight: bold;
     transform: scale(1.1);
    background-color: #e6f2ff; /* 浅蓝色背景 */
    color: #2a7ae2; /* 可以改成你喜欢的蓝色 */
     padding: 2px 4px;         /* 内边距让背景不贴字 */
     /* 让放大和颜色变化都有平滑过渡 */
     border-radius: 3px;        /* 圆角 */
     transition: all 0.2s ease;
     transition: all 0.2s ease;
}
}

2026年7月8日 (三) 01:48的版本

/* 为特定区域的链接添加特效,这里以 "a" 标签为例,你可以根据需要限制范围 */
a:hover {
	text-decoration: none;
    font-weight: bold;
    background-color: #e6f2ff; /* 浅蓝色背景 */
    padding: 2px 4px;          /* 内边距让背景不贴字 */
    border-radius: 3px;        /* 圆角 */
    transition: all 0.2s ease;
}