当前位置:网站首页>用户体验好的Button,在手机上不应该有Hover态
用户体验好的Button,在手机上不应该有Hover态
2022-08-01 19:42:00 【InfoQ】
1. Button在PC端的3种状态
- 常态
- Hover态
- Active态
常态

Hover态(光标悬浮在按钮上)

Active态(光标左键按下按钮并保持按住)

2. Button在移动端不需要Hover态
为什么?
移动端注意事项
button:active {
-webkit-tap-highlight-color: rgba(0 0 0 / 0);
}
如何给PC端加Hover,不给手机加Hover?
@media (any-hover: hover) {
button:hover {
background: yellow;
}
}
3. 注意样式顺序
4. 写在最后
边栏推荐
- 把 Oracle 数据库从 RAC 集群迁移到单机环境
- 第57章 业务逻辑之业务实体与数据库表的映射规则定义
- Pytorch模型训练实用教程学习笔记:四、优化器与学习率调整
- Oracle排序某个字段, 如果这个varchar2类型的字段有数字也有文字 , 怎么按照数字大小排序?
- SQL的 ISNULL 函数
- 图文详述Eureka的缓存机制/三级缓存
- How to install voice pack in Win11?Win11 Voice Pack Installation Tutorial
- 17. Load balancing
- Keras deep learning practice - traffic sign recognition
- 八百客、销售易、纷享销客各行其道
猜你喜欢

18. Distributed configuration center nacos

【蓝桥杯选拔赛真题47】Scratch潜艇游戏 少儿编程scratch蓝桥杯选拔赛真题讲解

Win11校园网无法连接怎么办?Win11连接不到校园网的解决方法

regular expression

【七夕特别篇】七夕已至,让爱闪耀

Mobile Zero of Likou Brush Questions

Creo5.0 rough hexagon is how to draw

Shell script topic (07): file from cfs to bos

MySQL你到底都加了什么锁?

30-day question brushing plan (5)
随机推荐
PHP 安全最佳实践
nacos安装与配置
第59章 ApplicationPart内置依赖注入中间件
小白系统初始化配置资源失败怎么办
安全作业7.25
【kali-信息收集】(1.6)服务的指纹识别:Nmap、Amap
From ordinary advanced to excellent test/development programmer, all the way through
What are the application advantages of SaaS management system?How to efficiently improve the digital and intelligent development level of food manufacturing industry?
#yyds dry goods inventory# Interview must brush TOP101: the last k nodes in the linked list
C语言实现-直接插入排序(带图详解)
deploy zabbix
How PROE/Croe edits a completed sketch and brings it back to sketching state
Library website construction source code sharing
18. Distributed configuration center nacos
Pytorch模型训练实用教程学习笔记:一、数据加载和transforms方法总结
数据库系统原理与应用教程(070)—— MySQL 练习题:操作题 101-109(十四):查询条件练习
网络不通?服务丢包?这篇 TCP 连接状态详解及故障排查,收好了~
【kali-信息收集】(1.3)探测网络范围:DMitry(域名查询工具)、Scapy(跟踪路由工具)
我的驾照考试笔记(2)
Win10, the middle mouse button cannot zoom in and out in proe/creo