当前位置:网站首页>用户体验好的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. 写在最后
边栏推荐
- 第60章 ApplicationPart自动集成整体性和独立性插件项
- 分享一个适用于MCU项目的代码框架
- 数据库系统原理与应用教程(071)—— MySQL 练习题:操作题 110-120(十五):综合练习
- 密码学的基础:X.690和对应的BER CER DER编码
- 【kali-信息收集】(1.2)SNMP枚举:Snmpwalk、Snmpcheck;SMTP枚举:smtp-user-enum
- Shell script topic (07): file from cfs to bos
- SQL的 ISNULL 函数
- 57: Chapter 5: Develop admin management services: 10: Develop [get files from MongoDB's GridFS, interface]; (from GridFS, get the SOP of files) (Do not use MongoDB's service, you can exclude its autom
- When installing the GBase 8c database, the error message "Resource: gbase8c already in use" is displayed. How to deal with this?
- Intranet penetration lanproxy deployment
猜你喜欢

因斯布鲁克大学团队量子计算硬件突破了二进制

1个小时!从零制作一个! AI图片识别WEB应用!

八百客、销售易、纷享销客各行其道

Win11如何开启剪贴板自动复制?Win11开启剪贴板自动复制的方法

GEE(8):使用MODIS填补由去云后的Landsat影像计算得到的NDVI数据

cf:D. Magical Array【数学直觉 + 前缀和的和】

30天刷题计划(五)

Redis启动时提示Creating Server TCP listening socket *:6379: bind: No error

#yyds dry goods inventory# Interview must brush TOP101: the last k nodes in the linked list

MySQL开发技巧——并发控制
随机推荐
Does LabVIEW really close the COM port using VISA Close?
因斯布鲁克大学团队量子计算硬件突破了二进制
Win11怎么安装语音包?Win11语音包安装教程
GEE(8):使用MODIS填补由去云后的Landsat影像计算得到的NDVI数据
我的驾照考试笔记(1)
Screenshot of Selenium in Remote
How PROE/Croe edits a completed sketch and brings it back to sketching state
Combining two ordered arrays
PROE/Croe如何编辑已完成的草图,让其再次进入草绘状态
Library website construction source code sharing
BN BatchNorm + BatchNorm的替代新方法KNConvNets
【软考软件评测师】基于规则说明的测试技术下篇
Oracle排序某个字段, 如果这个varchar2类型的字段有数字也有文字 , 怎么按照数字大小排序?
Risc-v Process Attack
即时通讯开发移动端弱网络优化方法总结
openresty 动态黑白名单
mysql自增ID跳跃增长解决方案
The solution to the vtk volume rendering code error (the code can run in vtk7, 8, 9), and the VTK dataset website
cf:D. Magical Array【数学直觉 + 前缀和的和】
【1374. 生成每种字符都是奇数个的字符串】