Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用SASS转义文本?_Sass - Fatal编程技术网

用SASS转义文本?

用SASS转义文本?,sass,Sass,我遇到了一个问题,我认为这是由于SASS(在我的例子中是SCSS)的编译方式造成的。我正试图编译这段代码:(在IE6/7中模拟:before和:after伪元素是一种非常粗糙的方法) 但它让人窒息。这可能是由于、和(无效,但我没有发现任何可以直接说SASS的东西:别管它,不要尝试编译它。预期的输出正是您在SCS中键入的吗?您是否得到了编译失败(以及哪个错误?)或只是“错误”的输出? .x-tool-collapse-top { *zoom: expression( this.run

我遇到了一个问题,我认为这是由于SASS(在我的例子中是SCSS)的编译方式造成的。我正试图编译这段代码:(在IE6/7中模拟
:before
:after
伪元素是一种非常粗糙的方法)


但它让人窒息。这可能是由于
无效,但我没有发现任何可以直接说SASS的东西:别管它,不要尝试编译它。

预期的输出正是您在SCS中键入的吗?您是否得到了编译失败(以及哪个错误?)或只是“错误”的输出?
.x-tool-collapse-top {
  *zoom: expression( 
    this.runtimeStyle.zoom="1",
    this.appendChild( document.createElement("small") ).className="after",
    this.insertBefore( document.createElement("small"), this.firstChild ).className="before"
  );
}

.x-tool-collapse-top .after,
.x-tool-collapse-top:after {
  @include extjsimagereplace;
  content: '\e6be';
  *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');
}