More than 5 items per line in jQuery Mobile navbar

前端 未结 8 1289
青春惊慌失措
青春惊慌失措 2021-02-01 17:45

I have unsuccessfully looked for a variable to change the maximum number of items in a single line in a navbar.

I am just starting with jQuery Mobile, trying to create

8条回答
  •  醉酒成梦
    2021-02-01 18:11

    The white-space property specifies how white-space inside an element is handled.

    nowrap: Sequences of whitespace will collapse into a single whitespace. Text will never wrap to the next line. The text continues on the same line until a
    tag is encountered

    Also CSS word wrap property

    break-word: Content will wrap to the next line when necessary, and a word-break will also occur if needed.

    Source for this answer: W3C

    I looked at the jQuery mobile code also and found this section:

    .ui-grid-d .ui-block-a, .ui-grid-d .ui-block-b, .ui-grid-d .ui-block-c, .ui-grid-d .ui-block-d, .ui-grid-d .ui-block-e { width:20%; }
    

    So perhaps by reducing this amount you should be able to squeeze more items in the list. (By the looks of it you also would need to define f and g as this one has only got up to e)

提交回复
热议问题