MediaWiki:Common.css:修订间差异

来自心灵终结资料站
跳转到导航 跳转到搜索
无编辑摘要
Lyx讨论 | 贡献
无编辑摘要
第1行: 第1行:
/* 为特定区域的链接添加特效,这里以 "a" 标签为例,你可以根据需要限制范围 */
/* 默认状态:无下划线,有过渡效果 */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}
 
/* 悬停状态:无下划线,但放大并变色 */
a:hover {
a:hover {
     font-weight: bold;
     text-decoration: none; /* 这行必须保留,确保悬停时也不出现 */
    background-color: #e6f2ff; /* 浅蓝色背景 */
     transform: scale(1.1);
     padding: 2px 4px;          /* 内边距让背景不贴字 */
     color: #ff6600;
    border-radius: 3px;       /* 圆角 */
     transition: all 0.2s ease;
}
}

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

/* 默认状态:无下划线,有过渡效果 */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 悬停状态:无下划线,但放大并变色 */
a:hover {
    text-decoration: none;  /* 这行必须保留,确保悬停时也不出现 */
    transform: scale(1.1);
    color: #ff6600;
}