Home > Backend Development > PHP Tutorial > thinkphp中display模板无法显示bootstrap效果

thinkphp中display模板无法显示bootstrap效果

WBOY
Release: 2016-06-23 14:19:04
Original
1059 people have browsed it

thinkphp Bootstrap 

我将html的模板文件双击打开可以显示bootstrap效果,而通过localhost运行控制器输出模板则只能显示基本的html,请问这是怎么回事?

回复讨论(解决方案)

应该是没成功包含或路径错误,你打开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>
Copy after login


3.1.2的ThinkPHP,__PUBLIC__ 代表项目跟目录下的public文件夹(与ThinkPHP3.1.2_Core文件夹同级)

firebug控制塔 直接看看又没有什么错误信息

谢谢!已经解决了:../../../../Public的最后一个../Public被替换了所以引用失败

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template