css - LESS 无法识别的输入

标签 css indexing less

@grayBorderColor: lightgrey;
@blueBorderColor: lightskyblue;

.eaSqm-filters-header {
    margin: 6px;
    height: 20px;
    &-title {
        display: none;
    }
    &-config {
        float: bottom;
        &-expandable-exitFullIcon {
            display: none;
        }
    }
    &-panel {
        &-downArrowIcon {
            height: 32px;
            width: 32px;
            display: none;
        }
        &-upArrowIcon {
            height: 32px;
            width: 32px;
        }
    }
}

.eaSqm-filters-Location {
    margin: 6px;
    height: 400px;
    display: inline-block;
}

.eaSqm-filters-Customer {
    margin: 6px;
    height: 400px;
    display: none;
}

.eaSqm-filters-Component {
    margin: 6px;
    height: 400px;
    display: none;
}

当我尝试运行这些文件时,它说上述文件在 1,56 处有一个无法识别的错误,我不确定这是什么类型的错误。我已经纠正了缺失的大括号并尝试修复内部颜色,但我仍然不断收到错误消息,并且无法找出错误原因。

最佳答案

结构的末尾 缺少大括号,这意味着您没有关闭 .eaSqm-filters-header

解决方案

@grayBorderColor:lightgrey;
@blueBorderColor: lightskyblue;

.eaSqm-filters-header {
    margin: 6px;
    &-title {
      display: none;
    }

    &-config {
      float: bottom;
      &-expandable-exitFullIcon {
        display: none;
    }
} /* Added missing curly brace */

希望这对您有所帮助!

关于css - LESS 无法识别的输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34725320/

相关文章:

html - 如何仅使用 html+css 而没有图像来替换默认的 html 复选框?

postgresql - Postgres 选择慢得多的序列扫描而不是索引扫描

css less font-size 加减法

jquery - 想要使用 jquery 向 td 添加填充

javascript - 如果按下 Ctrl + F,则禁用表单查找浏览器

css - @媒体 : if samsung galaxy s4 is 1920x1080?

mysql - 如果我在表中的每一列上放置索引会发生什么

database - 在有序数字列表中查找数字记录的算法

css - LESS CSS 和 RetinaJS 错误

css - less/scss 中的字符串操作?