How do I hide the borders around checkboxes in an ASP.Net CheckBoxList control with jQuery?

前端 未结 2 1578
你的背包
你的背包 2021-01-19 12:11

I need to get rid of the borders around the individual checkboxes that are rendered by a CheckBox control. Here\'s what it looks like now:

2条回答
  •  爱一瞬间的悲伤
    2021-01-19 12:30

    Your code isn't showing it, but apparently at some point class .formTable is being assigned to the CheckBoxList. Just remove border: solid 1px #bbbbbb; from the second class declaration:

    .formTable tr, .formTable tr td, .formTable tr th
    {
      background-color: #eeeeee;
      padding: 3px;
      vertical-align: top;
    }
    

    Demo: http://jsfiddle.net/pgpR3/1/

提交回复
热议问题