How do I change an inputs border colour without changing the style?

前端 未结 6 1323
野性不改
野性不改 2021-01-18 12:42

I\'m trying to do something pretty simply; change the border colour of an input. In both IE11 and latest stable Chrome, changing the color also changes how it looks (appears

6条回答
  •  有刺的猬
    2021-01-18 13:16

    In IE11 and Chrome, this got me matching boxes.

    As for why... browsers will be browsers?

    
    
    

    http://jsfiddle.net/S2TxT/11/

    EDIT

    After further investigation, it becomes apparent why this might happen: http://jsfiddle.net/S2TxT/18/

提交回复
热议问题