Home  >  Article  >  Backend Development  >  thinkphp中display模板无法显示bootstrap成效

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

WBOY
WBOYOriginal
2016-06-13 11:47:21902browse

thinkphp中display模板无法显示bootstrap效果
我将html的模板文件双击打开可以显示bootstrap效果,而通过localhost运行控制器输出模板则只能显示基本的html,请问这是怎么回事?
------解决方案--------------------
应该是没成功包含或路径错误,你打开chrome或FF,chrome的话按F12,查看文件是否成功引入

<br /><br /><!DOCTYPE html><br /><html lang="en"><br /><head><br /><title>X</title><br />	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><br />	<link href="__PUBLIC__/css/bootstrap.css" rel="stylesheet"><br />	<link href="__PUBLIC__/css/bootstrap-responsive.css" rel="stylesheet"><br /></head><br /><body><br /><script src="__PUBLIC__/js/bootstrap.min.js"></script><br /><script src="__PUBLIC__/js/bootstrap-transition.js"></script><br /><script src="__PUBLIC__/js/bootstrap-popover.js"></script><br /><script src="__PUBLIC__/js/bootstrap-tooltip.js"></script><br /></body><br /></html><br /><br />


3.1.2的ThinkPHP,__PUBLIC__ 代表项目跟目录下的public文件夹(与ThinkPHP3.1.2_Core文件夹同级)
------解决方案--------------------
firebug控制塔 直接看看又没有什么错误信息

Statement:
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