“弹出窗口”的名称是什么?在网页上
在 amazon.com 和 walmart.com 上,当您将鼠标悬停在部门上时,会出现一个弹出功能。它的工作方式类似于菜单,但悬停时会显示一个带有完整链接列表的实际矩形窗口。
我正在尝试查找该功能的名称。我想知道“弹出”是否合适?第二个问题是否有 jQuery 插件可以做类似的事情。我尝试搜索弹出插件,实际上有一些,但它们似乎不是我想要的。
On amazon.com and on walmart.com there is a flyout feature when you hover over the departments. It works similar to a menu but an actual rectangular window with full lists of links are displayed on hover.
I am trying to find the name of that feature. I wonder of "flyout" is appropriate? And as a second question are there jQuery plugins that do similar things. I tried searching flyout plugins and there are actually a few but they don't seem to be what I want.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
正如亚历克斯所说...这并不难...事实上,您要做的是 html 中的一个简单列表:
然后您只需在 CSS 中隐藏 .submenu 类:
并使用 jquery 将一个类添加到悬停的列表元素:
然后在你的 CSS 中将相应的属性添加到悬停的子菜单中:
基本上它应该可以使用...然后你只需添加链接、背景等所需的样式属性。
As Alex said... it's not that hard... in fact, what you have to do is a simple list in html:
Then you just hide the .submenu class in CSS:
And with jquery add a class to the hovered list element:
then in your CSS add the respective properties to the hovered submenu:
and basiclly it should work with it... then you just add the style properties you need for links, backgrounds, etc.
我认为它可能类似于 ASP.NET AJAX HoverMenu。
I think it might be similar to the ASP.NET AJAX HoverMenu.
于是我看了一下网站,发现比我想象的还要简单。
与您在互联网上找到的其他菜单相比,它缺乏特殊的效果和动画。
使用 firebug 快速查看一下,它们将所有内容隐藏并与引用的
元素(使用 CSS 样式化)关联。
当您将鼠标悬停在菜单项上时,CSS 会从
navSaMenuItemMiddle
更改为navSaMenuItemMiddleOpen
,并且具有绝对位置的 div 会填充菜单项的内容。该脚本是 此,它是 Amazon.com 的专有权利。
So I took a look at the website and it is even easier than I thought.
Compared to other menus you can find in the internet, this lacks particular effects and animations.
Having a quick look with firebug, they keep all the content hidden and associated to the referring
<li>
element (styled with CSS).When you over with the mouse to a menu item, the CSS changes from
navSaMenuItemMiddle
tonavSaMenuItemMiddleOpen
and a div with absolute position is filled with the content of the menu item.The script is this, and it is proprietary of Amazon.com.