【问题标题】:Ionic Framework to customize the select buttonIonic Framework 自定义选择按钮
【发布时间】:2016-01-13 09:47:42
【问题描述】:

是否可以覆盖选择菜单的 ionic css 以显示自定义下拉箭头?

我在这里尝试过http://codepen.io/DevinGray/pen/gPxwvB

但它只是将箭头放在原来的上面而不是替换它

这是我尝试过的样式

 .styled-select select {
   background: transparent;
   width: 268px;
   padding: 5px;
   font-size: 16px;
   line-height: 1;
   border: 0;
   border-radius: 0;
   height: 34px;
   -webkit-appearance: none;
   }

.styled-select {
    padding: 0 5px 0 0;
   overflow: hidden;
   background: url(http://rccgroseofsharon.co.za/images/more4.png) no-repeat right !important;
   border: 1px solid #ccc;
}

【问题讨论】:

    标签: android ios css ionic-framework ionic


    【解决方案1】:

    使用此 css 更改自定义下拉箭头颜色。

    .item-select::after{
        color:#FF0000;
    }
    
    .styled-select {
        background: none;
    }
    

    【讨论】:

      猜你喜欢
      • 2019-08-16
      • 2013-09-03
      • 2019-04-27
      • 1970-01-01
      • 1970-01-01
      • 2019-10-29
      • 1970-01-01
      • 2017-12-30
      • 1970-01-01
      相关资源
      最近更新 更多