<style>.disabled-link {pointer-events: none;cursor: default;text-decoration: none;color: inherit; }</style><a href="https://www.example.com" class="disabled-link">禁用链接</a>
在上述CSS样式中,
pointer-events: none;将禁用链接的点击事件,
cursor: default;将鼠标指针样式设置为默认,
text-decoration: none;将去除链接的下划线,
color: inherit;将链接的颜色设置为继承