html - :active link when index page loads

标签 html css hyperlink

当我加载我的 index.html 页面时,我如何做到这一点,它现在知道它是事件的并加载相应的 a:active css?

最佳答案

:active 不是这个意思。
一个链接是 :active 如果它被鼠标选中。

您需要将 class="Current" 添加到链接并在 CSS 中使用该类。

关于html - :active link when index page loads,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11268907/

相关文章:

javascript - 从 JavaScript 调用 href

javascript - 卡在构建 'cart management' 系统

jquery - 将 Bootstrap 下拉菜单和触发器包装在单独的父 div 中

CSS:自动改变特定字符的颜色?

html - 使用 bootstrap 4 设置列断点

html - 一个 :link, 一个 :visted, 一个 :hover, 和一个 :active not working?

css - 当前链接未保持事件状态

javascript - `alert($(' table tr ').html());` 只显示一行表

html - 如何使用 CSS 在同一类的 2 个标签之间选择 sibling

javascript - 使用 VueJS 和 Vuetify 如何在 v-flex 中垂直和水平居中 v-switch?