Ant Design Mobile 覆盖默认的样式。


直接在css中这样写是不行的,完全没有效果。

.am-list-item.am-input-item {
    height: 36px;
    min-height: 30px;
}

要像下面这样,加上global才有效果。

:global {
  .am-list-body {
    background-color:transparent;
    //border-top: 1px solid #ddd !important;
    //border-bottom: 1px solid #ddd !important;
  }
  .am-list-item {
    height: 36px;
    min-height: 30px;
    .am-list-line {
      .am-list-content {
        font-size: 14px;
      }
      .am-list-extra {
        font-size: 14px;
      }
      .am-list-arrow {
        width: 10px;
        height: 10px;
      }
    }

    .am-input-label {
      font-size: 14px;
    }

    .am-input-control {
      input {
        font-family: SourceHanRegular, serif;
        font-size: 14px;
      }
    }
  }

  .am-list-item.am-input-item {
    height: 36px;
    min-height: 30px;
  }
}

== The End ==


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM