<legend id='gXq95'><style id='gXq95'><dir id='gXq95'><q id='gXq95'></q></dir></style></legend>

    <small id='gXq95'></small><noframes id='gXq95'>

  1. <i id='gXq95'><tr id='gXq95'><dt id='gXq95'><q id='gXq95'><span id='gXq95'><b id='gXq95'><form id='gXq95'><ins id='gXq95'></ins><ul id='gXq95'></ul><sub id='gXq95'></sub></form><legend id='gXq95'></legend><bdo id='gXq95'><pre id='gXq95'><center id='gXq95'></center></pre></bdo></b><th id='gXq95'></th></span></q></dt></tr></i><div id='gXq95'><tfoot id='gXq95'></tfoot><dl id='gXq95'><fieldset id='gXq95'></fieldset></dl></div>
      <bdo id='gXq95'></bdo><ul id='gXq95'></ul>
    1. <tfoot id='gXq95'></tfoot>

      如何在脚本中验证 CSS?

      How can I validate CSS within a script?(如何在脚本中验证 CSS?)
    2. <i id='eeF7S'><tr id='eeF7S'><dt id='eeF7S'><q id='eeF7S'><span id='eeF7S'><b id='eeF7S'><form id='eeF7S'><ins id='eeF7S'></ins><ul id='eeF7S'></ul><sub id='eeF7S'></sub></form><legend id='eeF7S'></legend><bdo id='eeF7S'><pre id='eeF7S'><center id='eeF7S'></center></pre></bdo></b><th id='eeF7S'></th></span></q></dt></tr></i><div id='eeF7S'><tfoot id='eeF7S'></tfoot><dl id='eeF7S'><fieldset id='eeF7S'></fieldset></dl></div>

            <bdo id='eeF7S'></bdo><ul id='eeF7S'></ul>

              <tbody id='eeF7S'></tbody>
              • <legend id='eeF7S'><style id='eeF7S'><dir id='eeF7S'><q id='eeF7S'></q></dir></style></legend>
                <tfoot id='eeF7S'></tfoot>

                <small id='eeF7S'></small><noframes id='eeF7S'>

              • 本文介绍了如何在脚本中验证 CSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                是否有可以验证 CSS 的库?

                Is there a library out there which will validate CSS?

                我能找到的唯一工具是网站.如果其中一个网站有 API,那也符合要求.

                The only tools I can find to do so are web sites. If one of these sites has an API, that would fit the bill, too.

                我有一个用作 CSS 编译器的脚本.它根据主题的设置设置各种变量,并生成和写入 CSS 文件.在着手编写 CSS 文件之前,我想对其进行验证以确保没有任何无效条目.

                I have a script that serves as a CSS compiler. It sets various variables according to settings for a theme, and generates and writes a CSS file. Before committing to writing the CSS file, I'd like to validate it to make sure there aren't any invalid entries.

                PHP 会很方便,但 Python、Perl、Ruby、Java 或任何可从 shell 执行的东西都可以.

                PHP would be convenient, but Python, Perl, Ruby, Java, or anything executable from a shell would be fine.

                理想情况下,我可以将某些东西用作序列的一部分,例如:

                Ideally, there's something out there that I can use as part of a sequence like:

                 $css_file=theme_compile('theme-name');
                 if(!validate_css($css_file)){
                   echo "css file contained invalid entry 'width:px'";//just an example, of course
                   }   
                 else{
                   file_put_contents('/path/css_file',$css_file);
                   }
                

                推荐答案

                W3C有一个API:

                http://jigsaw.w3.org/css-validator/api.html

                您还可以下载验证器并在本地运行它:http://jigsaw.w3.org/css-validator/DOWNLOAD.html

                You can also download the validator and run it locally: http://jigsaw.w3.org/css-validator/DOWNLOAD.html

                您需要能够从脚本运行 java.

                You need to be able to run java from your script.

                这篇关于如何在脚本中验证 CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                    <tbody id='qCjjD'></tbody>
                  <i id='qCjjD'><tr id='qCjjD'><dt id='qCjjD'><q id='qCjjD'><span id='qCjjD'><b id='qCjjD'><form id='qCjjD'><ins id='qCjjD'></ins><ul id='qCjjD'></ul><sub id='qCjjD'></sub></form><legend id='qCjjD'></legend><bdo id='qCjjD'><pre id='qCjjD'><center id='qCjjD'></center></pre></bdo></b><th id='qCjjD'></th></span></q></dt></tr></i><div id='qCjjD'><tfoot id='qCjjD'></tfoot><dl id='qCjjD'><fieldset id='qCjjD'></fieldset></dl></div>
                  <tfoot id='qCjjD'></tfoot>
                    <bdo id='qCjjD'></bdo><ul id='qCjjD'></ul>

                    1. <legend id='qCjjD'><style id='qCjjD'><dir id='qCjjD'><q id='qCjjD'></q></dir></style></legend>

                      <small id='qCjjD'></small><noframes id='qCjjD'>