thinkphp中display模板无法显示bootstrap效果
我将html的模板文件双击打开可以显示bootstrap效果,而通过localhost运行控制器输出模板则只能显示基本的html,请问这是怎么回事? thinkphp Bootstrap?
[解决办法]
应该是没成功包含或路径错误,你打开chrome或FF,chrome的话按F12,查看文件是否成功引入
<!DOCTYPE html>
<html lang="en">
<head>
<title>X</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="__PUBLIC__/css/bootstrap.css" rel="stylesheet">
<link href="__PUBLIC__/css/bootstrap-responsive.css" rel="stylesheet">
</head>
<body>
<script src="__PUBLIC__/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/js/bootstrap-transition.js"></script>
<script src="__PUBLIC__/js/bootstrap-popover.js"></script>
<script src="__PUBLIC__/js/bootstrap-tooltip.js"></script>
</body>
</html>