gpt4 book ai didi

html - css 下拉菜单悬停延迟 1 秒

转载 作者:行者123 更新时间:2023-11-28 01:20:20 25 4
gpt4 key购买 nike

我有一个非常大的大型菜单下拉菜单,当试图访问内容时,它只是通过滚动打开,并且大型菜单打开时覆盖了大部分屏幕,这让人有点恼火。有没有办法到 1 秒。当您将鼠标悬停在菜单上时,菜单会在菜单下降之前延迟 css 吗?

这是网站 http://www.brokenarrowwear.com/

    button, .button {
padding: 0.7rem 1.345rem 1.0625rem; /*move menu text height*/
font-size: 1.5rem;
}
.button-group > li > button, .button-group > li .button {
height: 44px; /*move menu background height */
margin-top: -10px;
}
.button-group > li {
height: 30px;
border-left: 1px solid #899299;
}
.button-group {
width: 104%;
letter-spacing: .014em;
}
.button-group .button {
font-family: 'Pathway Gothic One', sans-serif;
color: black;
background-color: ;
text-transform: uppercase;
}
.buttonleft {
border-left: 0 !important;
}
.button-group .button:hover {
background: white;
box-shadow: 0px 0px 5px 4px rgba(0, 0, 0, 0.08);
}

/*Strip the ul of padding and list styling*/
.menu ul {
list-style-type:none;
padding:0;
position: absolute;
}

/*Style for menu links*/
.menu li a {
/*display:block;*/
text-align: center;
text-decoration: none;
color: transparent;
}

/*Hover state for top level links*/
.menu li:hover .button {
background: white;
color: #828282; /* hover on menu links */
}

.menu li:hover {
box-shadow: 0px 0px 5px 4px rgba(0, 0, 0, 0.08);
}
/*Style for dropdown links*/
.menu li:hover ul .button {
background: white;
color: #161616;
height: 40px;
line-height: 40px;
}

/*Hover state for dropdown links*/
.menu li:hover ul a:hover {
color: #161616;
}

/*Hide dropdown links until they are needed*/
.menu li ul {
display: none;
z-index: 100;
width: 101.5%; /* width of drop down box */
}

/*Make dropdown links vertical*/
.menu li ul li {
display: block;
float: none;
box-shadow: 0px 0px 5px 4px rgba(0, 0, 0, 0.08);
-moz-box-shadow: 0px 0px 5px 4px rgba(0, 0, 0, 0.08);
-webkit-box-shadow: 0px 0px 5px 4px rgba(0, 0, 0, 0.08);
}

.hidden li {
width: 96%;
height: 461px;
background-color: white;
}
.hidden li img {
margin-top: -55px;
}
.hidden
{
left:0px;
margin-top: -20px;
margin-left: -2px;
}

/*Display the dropdown on hover*/
.menu ul li a:hover + .hidden, .hidden:hover {
display: block;
}

最佳答案

您可以使用过渡选项来延迟悬停。试试这个:

div:hover{ 
transition-delay:1s;
}

关于html - css 下拉菜单悬停延迟 1 秒,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34185629/

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