我不确定我在这里做错了什么,但我想将登录表单加载到模态窗口中.一旦我将hide添加到我的模态窗口的类中它就消失了,当我点击我的按钮时没有任何反应.我将淡入淡出类添加到我的模态窗口中,窗口出现几秒钟然后消失.我不确定我做错了什么,但这是我正在使用的代码.任何帮助总是非常感谢.
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
</head>
<body>
<a href="#myModal" data-toggle="modal">Login</a>
<div class="modal hide fade" id="myModal" aria-hidden="true">
<div class="modal-header">
<h3>The Sports Freak Login</h3>
</div>
<div class="modal-body">
<form>
<label>Email</label>
<input type="email" class="span4">
<br>
<label>Password</label>
<input type="text" class="span4">
<br><br>
<button type="submit" class="btn btn-success">Logn</button>
<button type="reset" class="btn">Clear</button>
</form>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud) 我在让 autoplayTimeout 在页面上平滑滚动时遇到了一些问题。它在加载前 5 个图像并滚动下一个图像后停止,并且非常生涩。您可以在此页面底部看到一个示例。
这是我在 javascript 中的设置:
<script type="text/javascript">
$(document).ready(function() {
$("#owl-demo").owlCarousel({
autoplay: true,
items: 5,
autoplayHoverPause: true,
autoplayTimeout: 10,
autoplaySpeed: 1000,
fluidSpeed:true,
itemsDesktop : [1199,3],
itemsDesktopSmall: [979,3],
itemsMobile: [479,1],
navigation: false,
dots: false,
loop: true
});
});
</script>
Run Code Online (Sandbox Code Playgroud)
我不确定我是否使用了正确的设置组合。