How to avoid text wrap when the parent element has position absolute?

后端 未结 1 919
别那么骄傲
别那么骄傲 2021-01-28 04:45

I have this structure:

相关标签:
1条回答
  • 2021-01-28 05:44

    Very simple:

    Force the white space in the child lis to not wrap:

    nav > ul[_v-2e9e2f12] > li {
      white-space: nowrap;
    }
    

    Demo: https://jsfiddle.net/d9jm82cb/7/

    0 讨论(0)
提交回复
热议问题