How to design tabs like Google Chrome tabs?

前端 未结 4 655
走了就别回头了
走了就别回头了 2021-02-08 12:18

How can I design a user interface with tabs like the one Google Chrome has, I mean each tab has to be able to:

  1. Maximize
  2. Close
  3. Dragged and be stan
4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-08 12:42

    Try implementing each tab as a HTMLGenericControl("div") and then apply the following jquery scripts on the client side.

    jQuery draggable tabs

    As far as the minimising of the tabs, you could simply add a small image to the right of the tab content which toggles the width of the tab based on the jquery click event handler.

提交回复
热议问题