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.
我觉得这是一个愚蠢的问题,但在这里。菜单按钮悬停时是否可以更改页面?例如,如果我将鼠标指向关于我们的菜单按钮,它会自动更改页面而无需单击?wordpress, html等...
预先感谢。
虽然就用户体验而言这并不自然,但您可以使用 Javascript 轻松完成。例如 -
document.getElementById('myButton').onmouseover = function() { window.location.href = 'http://www.google.com/'; };
JSFiddle 示例