jquery - 如何使用 :after 选择器通过 jQuery 更改背景颜色?
问题描述
如何使用 jQuery 更改弹出字母的背景颜色?
.map-button a.active:after {
content: '';
width: 20px;
height: 20px;
display: inline-block;
border: 2px solid #000;
background-color: #FFF;
border-radius: 50%;
margin-top: 2px;
}
<div class="map-button">
<a href="#" data-id="0900" title="A">
<span class="sr-only">A</span>
</a>
</div>
解决方案
推荐阅读
- javascript - Google Script Container boundscript onEdit 共享它会覆盖文件
- android-paging - 使用 PagedListAdapter 时对数组项进行排序?
- java - 来自对数组的二进制矩阵
- java - 如何将其他类文件中定义的常量用作自定义注释中的默认值
- c++ - 用于 Clang++ 的 InterlockedExchange 的 32 位调用约定错误,但 MSVC 很好
- javascript - 如何将 javascript 数组转换为对象?
- redux - 在保存存储状态之前更改数据的推荐方法是什么
- django - 以字符串形式检索的 QueryDict 中的列表
- c# - 数据库上的字符串编码失败
- javascript - 在主屏幕中反应原生底部导航