<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

        时间:2023-09-30
            <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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:使用 Sass/Compass 的多个背景图像 下一篇:键盘向上推动一个 div &amp;走出屏幕

                  相关文章

                  <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>

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

                    1. <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>