How to use Bootstrap Tags Input plugin

前端 未结 2 1007
日久生厌
日久生厌 2021-01-02 06:37

I am trying to use Bootstrap Tags Input plugin without Typeahead. I have included following files:



        
2条回答
  •  星月不相逢
    2021-01-02 07:38

    This is how i did it

    
    no more javascript
    

    Css
    You can include the original bootstrap tags input css file

    
    

    Or you can just use only this

    .bootstrap-tagsinput {
        background-color: #fff;
        border: 1px solid #ccc;
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
        display: block;
        padding: 4px 6px;
        color: #555;
        vertical-align: middle;
        border-radius: 4px;
        max-width: 100%;
        line-height: 22px;
        cursor: text;
    }
    .bootstrap-tagsinput input {
        border: none;
        box-shadow: none;
        outline: none;
        background-color: transparent;
        padding: 0 6px;
        margin: 0;
        width: auto;
        max-width: inherit;
    }
    

    And HTML

    
    

提交回复
热议问题