gpt4 book ai didi

javascript - 链接不重定向用户

转载 作者:太空宇宙 更新时间:2023-11-04 00:20:51 24 4
gpt4 key购买 nike

我在我的网站上工作,我遇到了一个僵局:我在导航栏中创建的链接没有将用户重定向到我网站上的另一个页面。

可以看出here , 我正在使用一个简单的导航栏和我发现的一种技术 at gmarwaha.com .我尽力按照说明进行操作,但似乎我错过了一步 - 不幸的是,我无法弄清楚那一步是什么!

CSS 与网站上的略有不同,但无论如何它仍然来自那里。如下所示:

.lavaLampBottomStyle {
position: relative;
height: 29px;
width: 342px;
background-color: white;
padding: 15px;
margin: 10px 0;
overflow: hidden;
border: 1px solid gray;
margin-left: auto;
margin-right: auto; }
.lavaLampBottomStyle li {
float: left;
list-style: none;
}
.lavaLampBottomStyle li.back {
border-bottom: 5px solid blue;
width: 9px;
height: 30px;
z-index: 8;
position: absolute;
}
.lavaLampBottomStyle li a {
font: bold 14px arial;
text-decoration: none;
color: #000;
outline: none;
text-align: center;
top: 7px;
text-transform: uppercase;
letter-spacing: 0;
z-index: 10;
display: block;
float: left;
height: 30px;
position: relative;
overflow: hidden;
margin: auto 10px;
}
.lavaLampBottomStyle li a:hover, .lavaLampBottomStyle li a:active, .lavaLampBottomStyle li a:visited {
border: none;
}

放在我文档head中的JavaScript也很重要:

$(function() {
$("#1, #2, #3").lavaLamp({
fx: "backout",
speed: 700,
click: function(event, menuItem) {
return false;
}
});
});

如果有人能帮我找出这个错误,我将不胜感激。

最佳答案

从示例代码中很难判断,但从点击返回 false 将阻止操作。

关于javascript - 链接不重定向用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9237194/

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