jQuery UI themes and HTML tables

后端 未结 4 1130
半阙折子戏
半阙折子戏 2021-01-30 01:41

Is there any way to theme an HTML table (CSS) with using the jQuery CSS themes?

All of my components look like they belong together except for my HTML table which looks

4条回答
  •  时光取名叫无心
    2021-01-30 02:05

    There are a bunch of resources out there:

    Plugins with ThemeRoller support:

    jqGrid

    DataTables.net

    UPDATE: Here is something I put together that will style the table:

    
    
    
    one two
    1 2
    1 2

    The CSS:

    .styleTable { border-collapse: separate; }
    .styleTable TD { font-weight: normal !important; padding: .4em; border-top-width: 0px !important; }
    .styleTable TH { text-align: center; padding: .8em .4em; }
    .styleTable TD.first, .styleTable TH.first { border-left-width: 0px !important; }
    

提交回复
热议问题