How can I define fieldset border color?

前端 未结 4 1206
予麋鹿
予麋鹿 2020-12-28 12:38

I want to set border color of field set. I am using class but this is not working properly because i want to remove fieldset default border color. so how can I use fieldset

4条回答
  •  暖寄归人
    2020-12-28 13:13

    It works for me when I define the complete border property. (JSFiddle here)

    .field_set{
     border: 1px #F00 solid;
    }​
    

    the reason is the border-style that is set to none by default for fieldsets. You need to override that as well.

提交回复
热议问题