繁体   English   中英

无法正确查看header.php

[英]Unable to properly view header.php

我的目录结构是这样的

  • index.php,
  • 图片 ,
  • 样式,
  • 菜单
  • header.php,
  • 宠物
    • petsindex.php

当我为index.php包括header.php时,它可以工作,但对于petsindex.php,它却在工作,但样式表不起作用,并且header.php中使用的图像也不起作用

因为它正在搜索pets / css.css中的样式表文件

尝试改变

path_to_css.css 

/path_to_css.css

与图像相同。 确保在网站根目录中有header.php

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM