Targeting nth column (made by column-count)

前端 未结 4 700
孤城傲影
孤城傲影 2021-01-18 05:32

Let\'s say I have this

  • test
  • test
  • test
  • test
4条回答
  •  孤街浪徒
    2021-01-18 06:11

    Use nth-child selector like this

    ul li:nth-child(1) {
      text-align: right;
    }
    ul li:nth-child(2) {
      text-align: left;
    }
    

提交回复
热议问题