angular - 垫子步进完成图标不在圆圈内
问题描述
您好,我在角度中使用垫子步进器时遇到了麻烦..
<div class="container text-center mt-5" >
<p>E-SNEAKERS</p>
<mat-horizontal-stepper #stepper>
<mat-step label="Step 1">
Step 1 content
</mat-step>
<mat-step label="Step 2">
Step 2 content
</mat-step>
<mat-step label="Step 3">
You are now done.
</mat-step>
</mat-horizontal-stepper>
</div>
完成步骤图标超出圆圈.. 组件不包含任何 css..
解决方案
检查此代码是否有效:
<mat-step label="Step 1">
<div style="padding-top: 3%;">
Step 1 content
</div>
</mat-step>
<mat-step label="Step 2">
<div style="padding-top: 3%;">
Step 2 content
</div>
</mat-step>
<mat-step label="Step 3">
<div style="padding-top: 3%;">
You are now done.
</div>
</mat-step>
在设计/模板时,您需要采取以下措施:
注 1:在转换基于 Mat 的样式时 - 始终在本地/组件级别的 scss 中更改,
注意 2:如果要在全局级别进行转换,请使用ng-deep。更多信息将在:https ://angular.io/guide/component-styles
推荐阅读
- sql - SQL QUERY:每个部门的位置和在每个位置工作的员工数量
- apache-kafka - Kafka生产者行为
- bash - grep -l 在到 xargs 的管道上的行为不符合预期
- c# - TPL Dataflow BufferBlock 线程安全吗?
- nightwatch.js - 如何让 nightwatch test_workers 与 browserstack-local 一起工作
- npm - 重新安装 Windows 后 Gulp 不起作用
- c - 如何从文件或输入中删除除十六进制之外的所有内容?
- sql-server - 如何使用 SQL 遍历 XML 字段中的所有父元素和子元素
- javascript - setTimeout 的实际延迟可能更短吗?
- excel - 查找一行中的值,然后在excel中提取另一行中的值