How to set bootstrap checkbox in razor CheckBoxFor()

后端 未结 5 1748
萌比男神i
萌比男神i 2021-01-06 01:25

I want to use bootstrap styled checkbox in my asp .net mvc form, however I find it very difficult. After hours looking for solution, I couldn\'t find anything that works for

5条回答
  •  鱼传尺愫
    2021-01-06 01:44

    Doesn't seem to work for me, the checkbox changes shape (the corners round) but acts as though its read only, still working on it.

    Just a note to your solution, you could use the offset to keep the controls aligned which don't have labels, so remove

    
    

    And add col-md-offset-2 instead:

提交回复
热议问题