html - 如何去除离子 4 段指示器(底线)?请告诉我
问题描述
.segment-button-indicator {
-ms-flex-item-align: end;
align-self: flex-end;
width: 100%;
height: 2px;
background-color: var(--indicator-color);
opacity: 1;
}
我是混合应用程序开发的新手。我必须使用离子段。有 ion-segment-indicator 指示离子段的底线,所以我需要将其删除。我可以从这些默认 css 代码中删除,但是当我尝试自定义它时并没有删除
解决方案
您无法删除它,但可以通过将其颜色设置为透明来隐藏它。
在theme/variables.scss添加这个:
ion-segment-button {
--indicator-color: transparent !important;
--indicator-color-checked: transparent !important;
}
推荐阅读
- azure-cognitive-search - 如何使用字母数字字符和破折号为通配符搜索索引字段
- java - Spring Boot 查询中的动态过滤器
- c++ - C++ 运算符最初定义在哪里?
- sqlite - 将字典或列表添加到 Sqlite3 - 给出错误操作参数必须是 str
- dart - 使用 json_serializable 包生成 dart 文件
- django - 额外字段不在 Django Modelform 的已清理数据中
- performance - mpirun 性能分析
- java - RxJava - 等待异步任务然后调用 Api
- python - 动态改变矩形颜色
- selenium - Selenium 数据和表单数据