Changing bootstrap caret(color and position)

前端 未结 7 2378
广开言路
广开言路 2021-02-12 14:24

I want to change color of caret and make it not relative from input text, because it\'s hard to make it look good when it is.

7条回答
  •  借酒劲吻你
    2021-02-12 14:56

    There are two ways I have done this. If you want this to affect all carets on your site (probably not preferred) then you could override the caret css class in you:

    .caret{border-top:4px solid red;}
    

    Another option is to create a custom class and add it to the caret in your markup

    .red{border-top:4px solid red;}
    
    
    

    The original JSFiddle has been updated http://jsfiddle.net/whoiskb/pE5mQ/

提交回复
热议问题