gpt4 book ai didi

html - 如何修复顶部栏菜单上的环形菜单被 Wordpress 中的图像阻挡?

转载 作者:太空宇宙 更新时间:2023-11-04 10:47:01 26 4
gpt4 key购买 nike

我在我自己的 wordpress 主题中在顶部栏上制作环形菜单时遇到问题,当鼠标悬停到环形菜单时被 Iphone Image 阻止,如下面的屏幕截图所示: ring menu problem

此处CSS样式:

.ringMenu {
margin: -3% 0 0 31%;
width: 0;
display: block;
float: left;
/* clear: none; */
}
.navbar-default .ringMenu ul {
list-style: none;
position: relative;


display: block;
}

.ringMenu ul li {
-webkit-transition: width 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
transition: width 0.3s ease-in-out;
display: block;
}

.ringMenu ul li a {
display: block;
width: 160px;
height: 160px;
background: url('http://i.imgur.com/pOvUHA6.png?1') no-repeat scroll right/ 97% 84%;
text-align: center;
line-height: 100px;
border-radius: 50px;
}



.ringMenu ul li.sub-ring {
-webkit-transform: translate;
-webkit-transition: all 1s ease-in-out;
-moz-transition: all 1s ease-in-out;
-o-transition: all 1s ease-in-out;
transition: all 1s ease-in-out;
display: block;
position: absolute;
top: 30px;
bottom: 0px;
left: 30px;
right: 0px;
opacity: 0;
}
.ringMenu:hover ul .sub-ring{opacity: 1;}

.ringMenu ul li.sub-ring a{
display: block;
width: 110px;
height: 115px;
}


/* top ring */

.ringMenu:hover ul li.top {
display: block;
top: 86px;
left: -213px;
}

/* Bottom ring */


.ringMenu:hover ul li.bottom{
display: block;
top: 175px;
left: -24px;
}

/* Right Ring */


.ringMenu:hover ul li.right {
top: 175px;
left: 83px;
}


/*Right2 Ring */

.ringMenu:hover ul li.right2{
top: 146px;
left: 185px;
}

/*Left Ring */

.ringMenu:hover ul li.left {
top: 146px;
left: -127px;
}

/* Left 2 Ring */

.ringMenu:hover ul li.left2 {
top: 86px;
left: 270px;
}

更多详情请查看my theme on this link.那么我该如何解决呢?

先谢谢

最佳答案

在你的类“.ringMenu ul li.sub-ring”中添加 z-index:1 这样类就会像

.ringMenu ul li.sub-ring {
bottom: 0;
display: block;
left: 30px;
opacity: 0;
position: absolute;
right: 0;
top: 30px;
transition: all 1s ease-in-out 0s;
z-index: 1;
}

希望它能解决您的问题。

关于html - 如何修复顶部栏菜单上的环形菜单被 Wordpress 中的图像阻挡?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35306650/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com