带引号的指令 [英] Directives with Quotes

查看:105
本文介绍了带引号的指令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用您的项目来解析各种项目的CSS.我用如下的import指令解析CSS时遇到了一个问题:

@import "/styles/menu.css"


在经过解析器并获得CSS文档的文本表示之后,它会删除",如下所示:

@import /styles/menu.css


我修改了Scanner._Init()私有例程,并更改了以下行,如下所示:

_start[34] = 11;



_start[34] = 1;


这是处理此问题的最佳方法,还是应该以其他方式解决此问题?

谢谢,
Tracy

解决方案

这是快速的问题.您阅读的文章下面有一个论坛,您可以在其中提问.这些文章是由读者编写的,因此没有您的项目"中的您",因此,在这里阅读此书并了解您的最新信息的人的可能性很小.

嘿,请尝试使用单引号而不是双引号

@import ''/styles/menu.css''



谢谢,
Debata


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

解决方案

This is quick questions. The article you read, has a forum under it, which is where you ask questions. There is no ''you'' as in ''your project'', the articles are written by readers, so there''s really little chance of anyone reading this here and knowing what you''re on about.


Hey try to use single quote instead of double quote

@import ''/styles/menu.css''



Thanks,
Debata


这篇关于带引号的指令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆