Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在不使用 JS 或 jQuery 单击(选择)的情况下用鼠标悬停选项时获取下拉列表的值?
前任。
List of Stuff -Dog -Cat -Bird
当我在下拉列表的选项周围移动鼠标时,它会告诉我我的项目正在被高亮显示。
这对于标准选择是不可能的,但是如果您非常需要所需的效果,您可以创建自己的选择组件并使用隐藏输入支持它们。