I'm having a shopping cart icon and shopping cart div that works like this:
(我有一个购物车图标和购物车div ,其工作方式如下:)
Cart icon hovering --> (show the cart div resume).
(购物车图标悬停 ->(显示购物车div简历)。)
The problem is that you mouse leave the cart icon and the cart div resume disappears.
(问题是您将鼠标留在购物车图标上,购物车div简历消失了。)
I'm trying adjust this in css but I only make it worst :S (我正在尝试在CSS中对此进行调整,但我只会使其更糟:S)
My desire result is that:
(我期望的结果是:)
Any idea to work with this or some similar.
(任何与此或类似的想法。)
You can see my structure in the next fiddle. (您可以在下一个小提琴中看到我的结构。)
Mainly css is this:
(主要是css是这样的:)
.header-cart-toggle .widget_shopping_cart{
visibility:hidden;
opacity:0;
position:absolute;
margin:0;
right:0;
z-index: 1;
background-color: #eeeeee;
transition:visibility 0s ease 0s, opacity 0.5s ease;
-webkit-transition:visibility 0s ease 0s, opacity 0.5s ease;
}
.header-cart-toggle:hover .widget_shopping_cart{
visibility:visible;
opacity:1;
padding-bottom: 0;
transition-delay:0s;
-webkit-transition-delay:0s;
}
https://jsfiddle.net/z0hygw7w/
(https://jsfiddle.net/z0hygw7w/)
ask by Genaut translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…