gpt4 book ai didi

javascript - jQuery 滑动侧边栏面板插件中的问题

转载 作者:行者123 更新时间:2023-11-28 10:15:14 27 4
gpt4 key购买 nike

jQuery 滑动侧边栏面板插件不工作。我希望它通过单击打开,但需要单击 3 次按钮才能打开滑动面板。我在 main.html 页面中写了下面的代码

<html> <head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.slidepanel.js"></script>

<script type="text/javascript">
$(document).ready(function(){
$('[data-slidepanel]').slidepanel({
orientation: 'right',
mode: 'overlay'
});
});
</script>
</head>

<body>
<div class="divButton">
<a href="slide.html" data-slidepanel="panel" ><button>Control Panel</button></a>
</div>

</body> </html>

最佳答案

同时添加以下文件....

 <link rel="stylesheet" type="text/css" href="jquery.slidepanel.css">

关于javascript - jQuery 滑动侧边栏面板插件中的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24242421/

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