手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

input 元素cursor设置pointer不生效的解决

时间:2024-10-21 14:54:07

1、现象:chrome浏览器,将html网页中input [file] 元素css样式中的‘cursor’属性设置为‘pointer’,但是鼠标移上去后的形状还是箭头。

2、解决办法:继续为input [file]元素添加css样式:" font-size:0;",鼠标再次移上去后就可以正常变成手形了。

© 手抄报圈