100% width divs not spanning entire width of the browser in webkit

前端 未结 8 1026
南方客
南方客 2021-01-08 01:10

I\'m having a hard time with what I thought would be a dead simple issue.

I\'m trying to create a div that spans 100% of the width of a browser window. The div is f

8条回答
  •  花落未央
    2021-01-08 01:24

    I have fixed mine by adding

    html, body
    {
      width: 100%;
      margin: 0px;
    }
    

    happy coding!!!

提交回复
热议问题