How to display inline several
  • with 100% width?
  • 后端 未结 7 1376
    灰色年华
    灰色年华 2020-12-21 01:24

    I have the following html:

    • element 1
    • element 2
    <
    7条回答
    •  粉色の甜心
      2020-12-21 02:00

      Try this

      • element 1
      • element 2
      #container { width:100%; } #container ul { text-align:center; } #container li { display:inline; text-align:center;padding-left:20px; padding-right:20px; }

    提交回复
    热议问题