本文介绍了带引号的指令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在使用您的项目来解析各种项目的CSS.我用如下的import指令解析CSS时遇到了一个问题:
@import "/styles/menu.css"
在经过解析器并获得CSS文档的文本表示之后,它会删除",如下所示:
@import /styles/menu.css
我修改了Scanner._Init()私有例程,并更改了以下行,如下所示:
_start[34] = 11;
到
_start[34] = 1;
这是处理此问题的最佳方法,还是应该以其他方式解决此问题?
谢谢,
Tracy
解决方案
I have been using your project to parse CSS for a variety of projects. I ran into an issue when it parses a CSS with the import directive as below:
@import "/styles/menu.css"
After going through the parser, and getting the text representation of the CSS Document, it removes the " as shown here:
@import /styles/menu.css
I modified the Scanner._Init() private routine and changed the following line as shown:
_start[34] = 11;
to
_start[34] = 1;
Is this the best way to handle this or should I resolve this issue a different way?
Thanks,
Tracy
解决方案
这篇关于带引号的指令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!