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>发布于 2014-06-16 19:25:18
同时添加以下文件....
<link rel="stylesheet" type="text/css" href="jquery.slidepanel.css">https://stackoverflow.com/questions/24242421
复制相似问题