PDA

View Full Version : سوال: bootstrap modal



arezooafshari
یک شنبه 25 آبان 1393, 08:13 صبح
کد زیر مربوط به bootstrap است، اما modal رو باز نمی کند.
(عکس از فولدر مربوطه رو هم گذاشتم)





<!doctype html>


<html>


<head>
<title>test</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
</head>


<body>

<!-- Button trigger modal -->
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
Launch demo modal
</button>


<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>

<!-- script -->
<script src="js/bootstrap.min.js"></script>
<script scr="js/jquery-1.11.1.min.js"></script>


</body>


</html>


125742

tooka123
یک شنبه 25 آبان 1393, 11:08 صبح
سلام , برای فراخوانی کتابخانه جی کوئری scr رو نوشتی که درستش کن و src بنویس و اول باید کتابخونه رو فراخوانی کنی و بعد فایل بوت استرپ

<script src="js/jquery-1.11.1.min.js"></script>
<script src=/js/bootstrap.min.js"></script>

mmdsharifi
یک شنبه 25 آبان 1393, 11:10 صبح
سلام
اول فایل جی کوری رو لینک بدید و بعدش bootstrap.js رو لینک بدید.جت هاشونو عوض کنید.
و اینکه نسخه جی کوری 2.0.2 رو استفاده کنید .
اینم دمویی که کار می کند:http://www.bootply.com/9aUgkWQOOG