Fix First Column of a Bootstrap Table

后端 未结 4 961
忘掉有多难
忘掉有多难 2020-12-02 20:53

I followed @koala_dev\'s code in this post to try to lock the first column s my table scrolls horizontally. The code unfortunately has no effect on my table. I was wondering

4条回答
  •  情话喂你
    2020-12-02 21:06

    $('#table') means your finding element by id table.

    $('.table') means your finding elements by class table.

    These are the CSS selectors you used in css.

    In your case, your table had id table so you can select that table using $('#table').

    And you don't have any html elements using class table, so you'll get nothing when you select using $('.table').

提交回复
热议问题