Adding a dropdown button to Twitter bootstrap typeahead component

后端 未结 2 1951
清酒与你
清酒与你 2020-12-24 10:19

Twitter bootstrap comes with a very handy auto-complete like component called typeahead. I am trying to add a small dropdown button (or widget) such that when pressed the ty

相关标签:
2条回答
  • 2020-12-24 10:33

    I have found this excellent componnet:

    Source code
    Live example

    One thing though, the drop-down button's background looks funny on rollover. The fix involves a small change in "bootstrap-combobox.css":

    ...
    .combobox-container .add-on {
        float: left;
        display: block;
        width: auto;
        min-width: 16px;
        height: 18px;
        margin-right: -1px;
        padding: 4px 5px;
        font-weight: normal;
        line-height: 18px;
        color: #999999;
        text-align: center;
        text-shadow: 0 1px 0 #ffffff;
        /*   background-color: #f5f5f5; */ // <<------------ comment this line
        border: 1px solid #ccc;
        -webkit-border-radius: 3px 0 0 3px;
        -moz-border-radius: 3px 0 0 3px;
        border-radius: 3px 0 0 3px;
    }
    ...
    
    0 讨论(0)
  • 2020-12-24 10:50

    Fuel UX as well provides a Combobox based on Bootstrap.

    0 讨论(0)
提交回复
热议问题