我在zend studio中新建的css文件,老提示出现“undefined css file”,不能被引用,请各位大神指点一下。

2025-05-13 12:04:10
推荐回答(1个)
回答(1):

原文:

Indeed, the validation should be skipped automatically when embedded PHP script is used for the src value. We will fix this in a future release. Until then the workaround is to switch off the validation for web resources: 

1. Go to Window > Preferences from the main menu. 
2. Go to the Validation preference page. 
3. Uncheck the checkboxes for Web Resources Validation. 
4. Click OK. 

The code will be re-validated and the error marker should disappear. If there is still an error marker, try restarting the IDE.

如图所示,只需要把validation中的web resources validator中的勾去掉即可。总的来说还是英文文档有用啊