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

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

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

        • <bdo id='ICt5L'></bdo><ul id='ICt5L'></ul>

      1. 将 scss 文件添加到 Stackblitz

        Add scss file to the Stackblitz(将 scss 文件添加到 Stackblitz)
            <bdo id='F98cK'></bdo><ul id='F98cK'></ul>

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

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

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

                <tbody id='F98cK'></tbody>
              • <tfoot id='F98cK'></tfoot>

                1. 本文介绍了将 scss 文件添加到 Stackblitz的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  你能告诉我如何将 scss 文件添加到 stackblitz.我试过了.但它不起作用.请查看并告诉我.

                  Can you tell me how to add scss file to the stackblitz. I tried that.But it is not working. Please see that and let me know.

                  我已尝试添加 home.html

                  这是项目: stackblitz

                  推荐答案

                  Scss 应该可以在 stackblitz 中工作:

                  @Component({
                    selector: 'page-home',
                    templateUrl: 'home.html',
                    styleUrls: [ './home.scss' ] <== add this
                  })
                  export class HomePage {
                  

                  样式类似

                   page-home {
                   .buttoncls {
                  

                  不适用于默认封装(ViewEncapsulation.Emulated),因为 page-home 不是 home 组件模板的一部分,并且Angular 将 [_ngcontent-c0] 之类的属性添加到样式中.

                  won't work for you with default encapsulation(ViewEncapsulation.Emulated) because page-home is not part of home component template and angular adds attribute like [_ngcontent-c0] to styles.

                  所以我们可以把 page-home 改成 ion-list 看看它是怎么工作的:

                  So we can change page-home to ion-list and see how it works:

                  Stackblitz 示例(ViewEncapsulation.Emulated)

                  但是我们可以禁用封装:

                  But we can disable encapsulation:

                  encapsulation: ViewEncapsulation.None
                  

                  Stackblitz 示例(ViewEncapsulation.None)

                  另请参阅此主题

                  https://github.com/stackblitz/core/issues/1

                  正如 EricSimons 9 天前评论的那样:

                  As EricSimons commented 9 days ago:

                  大家好!我们刚刚发布了 SASS 和 LESS 支持,我们还支持angular-cli.json 配置也是 :)

                  Hey all! We just shipped SASS and LESS support, and we also support the angular-cli.json config too :)

                  这篇关于将 scss 文件添加到 Stackblitz的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  whatwg-fetch new typescript 2.5.3(whatwg-fetch 新的打字稿 2.5.3)
                  Change auto import format in WebStorm(在 WebStorm 中更改自动导入格式)
                  Opensource/free HTML5/CSS3/JavaScript IDE?(开源/免费 HTML5/CSS3/JavaScript IDE?)
                  jump to CSS selector in a css file from the HTML file in Vim using a single keystroke(使用单次击键从 Vim 中的 HTML 文件跳转到 CSS 文件中的 CSS 选择器)
                  How to ignore a particular directory or file for tslint?(如何忽略 tslint 的特定目录或文件?)
                  Remove Styles from Text when Copying / Cutting using CSS or Javascript(使用 CSS 或 Javascript 复制/剪切时从文本中删除样式)

                  <legend id='W7KQJ'><style id='W7KQJ'><dir id='W7KQJ'><q id='W7KQJ'></q></dir></style></legend>
                  1. <small id='W7KQJ'></small><noframes id='W7KQJ'>

                      • <bdo id='W7KQJ'></bdo><ul id='W7KQJ'></ul>

                            <tbody id='W7KQJ'></tbody>
                          <tfoot id='W7KQJ'></tfoot>

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