jQuery UI Accordion - How to remove style completly?

后端 未结 7 1582
北荒
北荒 2021-02-13 10:33

I love the functionality of the jQuery accordion (http://jqueryui.com/demos/accordion/) however I do not want the style !!

I\'d like to get rid of all the styles, the im

7条回答
  •  一向
    一向 (楼主)
    2021-02-13 11:34

    I needed (wanted) to do the same thing. In my case I wanted to remove the extra padding the default css provides for accordion-content, which looks like this:

    .ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
    

    In MY css I simply added this:

     .ui-accordion .ui-accordion-content {padding: 0;}    
    

    This successfully set (overrode) just the padding.

    Rob

提交回复
热议问题