Twitter Bootstrap不适用于PHP
问题描述:
嘿家伙我使用PHP与MAMP。Twitter Bootstrap不适用于PHP
显然bootstrap没有出现在我的基本PHP应用程序中。我有index.php文件。
这是我的代码:
<!DOCTYPE html>
<html>
<head>
<title>Summit</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body>
<h1>Summit</h1>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.js"></script>
</body>
</html>
而我在我的htdocs文件夹bootstrap.js,bootstrap.css,和的index.php(含有上面的代码),它似乎是默认的目录使用甲基苯丙胺。
答
检查脚本是否正确引用正确的目录..
你是什么意思不工作? –
为什么你的脚本不在你的头标签中?将其移动到那里开始,然后检查控制台并确保文件位于正确的位置 – DavidB
什么不起作用?你有什么错误吗? – Salman