if a div is 100% width by default

后端 未结 3 1282
日久生厌
日久生厌 2021-01-02 06:32

If a div is 100% width, should I still put in width: 100%;? I look at a lot of code and it\'s always in there even though by default a div

3条回答
  •  滥情空心
    2021-01-02 06:50

    nope, pretty useless I think to give it a 100% width unless you have a background-color or image or something in this div.

提交回复
热议问题