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

前端 未结 8 1075
南方客
南方客 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:23

    I have fixed mine by

    body
    {
    background-color:#ffffdffffd;
    width:100%;
    margin:0px;
    }
    

提交回复
热议问题