jQuery Sliding Sidebar Panel插件无效。我希望它只需单击即可打开,但需要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>
答案 0 :(得分:0)
还添加以下文件....
<link rel="stylesheet" type="text/css" href="jquery.slidepanel.css">