CSS Button has a border

前端 未结 7 465
旧巷少年郎
旧巷少年郎 2021-01-23 21:58

I am trying to define a custom css button for my search form. I cant figure out why this particular button has a strange border around it? I need to get it removed but cannot

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-23 22:12

    This is happening because of default style you need to override it by define your own class for example 'change':-

     
    
    button.button-search.change{
        border:0;
        padding:0;
    }
    

    Updated fiddle :-http://jsfiddle.net/ynwypqw2/

提交回复
热议问题