当前位置: 首页 > news >正文

Vue美化文字链接(超链接)

基础样式美化链接

<template><div><a href="https://www.example.com" target="_blank" class="basic-link">访问 Example 网站</a></div>
</template><style scoped>
.basic-link {color: #3498db;text-decoration: none;font-weight: bold;
}
.basic-link:hover {color: #e74c3c;text-decoration: underline;
}
</style>

渐变文字链接

<template><div><a href="#" class="gradient-link">炫彩链接</a></div>
</template><style scoped>
.gradient-link {background: linear-gradient(to right, #ff6a00, #ee0979);-webkit-background-clip: text;-webkit-text-fill-color: transparent;font-weight: bold;text-decoration: none;
}
</style>

放大动画效果

<template><div><a href="#" class="scale-link">放大链接</a></div>
</template><style scoped>
.scale-link {display: inline-block;transition: transform 0.3s ease;text-decoration: none;color: #2c3e50;
}
.scale-link:hover {transform: scale(1.1);
}
</style>

下划线滑入动画

<template><div><a href="#" class="underline-slide">滑入下划线</a></div>
</template><style scoped>
.underline-slide {position: relative;text-decoration: none;color: #333;
}
.underline-slide::after {content: '';position: absolute;width: 0%;height: 2px;bottom: 0;left: 0;background-color: #333;transition: width 0.3s;
}
.underline-slide:hover::after {width: 100%;
}
</style>

彩色边框链接

<template><div><a href="#" class="border-link">边框链接</a></div>
</template><style scoped>
.border-link {padding: 5px 10px;border: 2px solid #8e44ad;border-radius: 5px;color: #8e44ad;text-decoration: none;transition: all 0.3s ease;
}
.border-link:hover {background-color: #8e44ad;color: white;
}
</style>

<template><div><router-link to="/about" class="nav-link">关于我们</router-link></div>
</template><style scoped>
.nav-link {color: #2c3e50;font-size: 18px;text-decoration: none;transition: color 0.3s ease;
}
.nav-link:hover {color: #f39c12;
}
</style>

极简灰色链接

<template><div><a href="#" class="minimal-link">极简链接</a></div>
</template><style scoped>
.minimal-link {color: #555;text-decoration: none;font-size: 16px;
}
.minimal-link:hover {color: #000;
}
</style>

适合正文内嵌链接,低调但清晰。

极简天蓝色链接

<template><div><a href="#" class="minimal-link">极简链接</a></div>
</template><style scoped>
.minimal-link {color: #409EFF;text-decoration: none;font-size: 16px;
}
</style>

细线下划线链接

<template><div><a href="#" class="underline-link">细线链接</a></div>
</template><style scoped>
.underline-link {color: #333;text-decoration: none;border-bottom: 1px solid #ccc;padding-bottom: 2px;
}
.underline-link:hover {border-color: #333;
}
</style>

轻微强调但不抢眼,适合导航或目录。

小圆角按钮式链接

<template><div><a href="#" class="pill-link">按钮风链接</a></div>
</template><style scoped>
.pill-link {display: inline-block;padding: 6px 12px;border-radius: 20px;background-color: #f5f5f5;color: #333;text-decoration: none;font-size: 14px;
}
.pill-link:hover {background-color: #e0e0e0;
}
</style>

像按钮但更轻盈,适合标签或操作项。

字体加粗 + 无装饰

<template><div><a href="#" class="bold-link">加粗链接</a></div>
</template><style scoped>
.bold-link {font-weight: 600;color: #222;text-decoration: none;
}
.bold-link:hover {color: #000;
}
</style>

适合强调但不花哨的链接文字。


文章转载自:

http://zCNMKglT.bnyLg.cn
http://ZXZE8z2J.bnyLg.cn
http://X4vlkknN.bnyLg.cn
http://1lSq1v3A.bnyLg.cn
http://ebNqHL5y.bnyLg.cn
http://joCCHJwl.bnyLg.cn
http://bETfaClp.bnyLg.cn
http://1AReonMU.bnyLg.cn
http://I0bVurzh.bnyLg.cn
http://LVoSejHx.bnyLg.cn
http://87gSkOVK.bnyLg.cn
http://JpKZuNei.bnyLg.cn
http://bFoPlJZ7.bnyLg.cn
http://0SpsFggv.bnyLg.cn
http://kq0M3259.bnyLg.cn
http://II4iUbq4.bnyLg.cn
http://J7IZ9Sa8.bnyLg.cn
http://fqxmovzJ.bnyLg.cn
http://B9HHlC30.bnyLg.cn
http://NCI3pjvY.bnyLg.cn
http://Qq1HHiGc.bnyLg.cn
http://HTwEIgGb.bnyLg.cn
http://FGYS7qMp.bnyLg.cn
http://yO6Vnx6t.bnyLg.cn
http://wlndv2Nb.bnyLg.cn
http://39yX2zoR.bnyLg.cn
http://zI6EZVM5.bnyLg.cn
http://nsgkpdF7.bnyLg.cn
http://CqmSbqvh.bnyLg.cn
http://Ug3EQewW.bnyLg.cn
http://www.dtcms.com/a/368878.html

相关文章:

  • 中囯移动电视盒子(魔百和)B860AV2.1-A2和CM311-5-zg刷机手记
  • TCP/IP函数——sendmsg
  • Linux网络自定义协议与序列化
  • 人工智能机器学习——聚类
  • docker-compose跨节点部署Elasticsearch 9.X集群
  • Qt控件:Item Views/Widgets
  • 轻量高效:Miniserve文件共享神器
  • Netty从0到1系列之JDK零拷贝技术
  • 从无图到轻图,大模型时代,图商的新角逐
  • 【物种分布模型】R语言物种气候生态位动态量化与分布特征模拟——气候生态位动态检验、质心转移可视化、适生区预测等
  • 盟接之桥说制造:在安全、确定与及时之间,构建品质、交期与反应速度的动态平衡
  • 【Android】SQLite使用——增删查改
  • DJANGO后端服务启动报错及解决
  • Hive使用Tez引擎出现OOM的解决方法
  • 前端三件套+springboot后端连通尝试
  • AI大模型如何重塑日常?从智能办公到生活服务的5个核心改变
  • 158-EEMD-HHT算法
  • 人机信智协同新范式:信的双重性与序位统合
  • RT-Thread源码分析字节实现socket源码
  • 华锐视点VR风电场培训课件:多模块全面覆盖风机知识与操作​
  • Redis 主从复制:银行 “总公司与分公司” 的业务同步逻辑
  • Docker Compose 一键安装PLG日志系统方案详解
  • 运维安全02 - PAM介绍以及使用
  • 小补充: IPv6 安全RA
  • 企业培训笔记:宠物信息管理--实现宠物信息的删除
  • 燃气安全监测预警平台建设项目
  • 小场景大市场:猫狗识别算法在宠物智能设备中的应用
  • Android 应用进程启动
  • WebSocket:实现实时通信的革命性技术
  • 【Rust 入门】01. 创建项目