HTML 使用 CSS 改变文本选中颜色
CSS HTML 大约 221 字代码
color
:选中后的文字颜色。
background
:背景色。
::selection {
background:#4CAF50;
color:white;
}
::-moz-selection {
background:#4CAF50;
color:white;
}
::-webkit-selection {
background:#4CAF50;
color:white;
}
阅读 43 · 发布于 2023-09-14
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Charles 提示 SSL Proxying not enabled for this host阅读 9492
-
Git 命令之暂存区阅读 2375
-
微信小程序添加公众号关注组件阅读 3803
-
k3s Helm Error INSTALLATION FAILED Kubernetes cluster unreachable阅读 3409
-
Prometheus+Grafana+redis_exporter 监控 Redis 服务阅读 1108
-
算法:翻转二叉树的左右节点阅读 1209
-
SpringMVC 使用对象接收 GET 请求参数 QueryString阅读 781
-
Git 合并两个分支阅读 2153
-
Java 语法糖 - try with resource阅读 916
-
软考-系统架构设计师:数据库故障与恢复阅读 1568