Home  >  Article  >  Backend Development  >  用PhpStorm开发Thinkphp项目,如何显示引用的css文件中的元素提示?

用PhpStorm开发Thinkphp项目,如何显示引用的css文件中的元素提示?

WBOY
WBOYOriginal
2016-06-06 20:38:061446browse

如在Public/Common/css中放有bootstrap.min.css
在页面引用时写的是PUBLIC/Common/css/bootstrap.min.css
这样phpstorm就不会显示bootstrap中的元素提示。
请问要如何解决?

回复内容:

如在Public/Common/css中放有bootstrap.min.css
在页面引用时写的是PUBLIC/Common/css/bootstrap.min.css
这样phpstorm就不会显示bootstrap中的元素提示。
请问要如何解决?

你写public/common/css/bootstrap.min.css当然不会有提示,phpstorm又不知道public是一个变量,它会当成一个public文件夹。
我的解决办法就是另外引入当前目录bootstrap.min.css,然后页面写完删除这个link

会有提示的,要隔一会儿,打字慢一点就会出现。

用个好的记事本。storm过于沉重了。

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