【问题标题】:PhpStorm: how to tune include paths correctlyPhpStorm:如何正确调整包含路径
【发布时间】:2015-10-01 15:27:05
【问题描述】:

比如我有这样的目录结构:

- root/
--- public/
------ style.css
--- views/
------ index.html
--- index.php

在 index.php 中:

require 'views/index.html';

在views/index.html中:

<link href="public/style.css" rel="stylesheet">

当我编辑“views/index.html”时,它会将“public/style.css”突出显示为未解析的文件,并且不使用它的内容进行自动完成。我该如何解决?

【问题讨论】:

    标签: css autocomplete ide phpstorm


    【解决方案1】:

    试试这个。

    <link href="../public/style.css" rel="stylesheet">
    

    我认为它只是期待一条比它更好的道路。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-15
      • 1970-01-01
      • 1970-01-01
      • 2015-08-05
      • 2013-08-21
      相关资源
      最近更新 更多