鼠标悬停在列表框上的效果就像在gmail中一样 [英] mouse hover effect on listbox as like in gmail

查看:68
本文介绍了鼠标悬停在列表框上的效果就像在gmail中一样的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i有一个列表框,当我们点击按钮时会显示用户ID ...



当我们将光标悬停在项目上时,当光标在项目上运行时应该选择项目,

就像在gmail.com中一样....





你能告诉我一些代码来清除我的怀疑......?



i have a listbox which shows userids when we click on a button...

in that when we hover cursor on the items, the items should be selected when cursor runs on the items,
as like in gmail.com....


can you please suggest me some code to clear my doubt...?

推荐答案

Gmail just更改悬停时的行颜色。所以你可以用两种方式做到这一点:

1.按照样式attricbute更改行颜色

2.或者通过更改css类改变颜色



使用Jquery添加此功能。



如果您需要更多帮助,请告诉我们。
Gmail just changes the row color on hover. So you can do this in two way:
1. Change the row color by style attricbute
2. Or change the color by changing the css class

Use Jquery to add this functionality.

If you need more help let me know.

这篇关于鼠标悬停在列表框上的效果就像在gmail中一样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆