1.问题:
将导航头封装成head.php文件,在各页面文件中用include调用它,结果导航头只显示文字图片,原http://IP/daohang/head.php做好的导航样式都没有显示(php不太懂)请大侠赐教,不胜感激!
我的首页是http://IP.index.php , <?php include("..daohang/head.php"); ?>或用代码<?php include("http://IP/daohang/head.php");
都只显示导航图片和文字,无样式。http://IP/daohang/head.php 导航正常!
另外两个页面都有<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
请大侠解谜 跪谢!
将导航头封装成head.php文件,在各页面文件中用include调用它,结果导航头只显示文字图片,原http://IP/daohang/head.php做好的导航样式都没有显示(php不太懂)请大侠赐教,不胜感激!
我的首页是http://IP.index.php , <?php include("..daohang/head.php"); ?>或用代码<?php include("http://IP/daohang/head.php");
都只显示导航图片和文字,无样式。http://IP/daohang/head.php 导航正常!
另外两个页面都有<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
请大侠解谜 跪谢!
另外看是不是缓存的问题,用firefox 和 chrome测试是什么情况呢
若 http://IP/daohang/head.php 导航正常的话,显然是少了一层目录