Have block level element fill 100% width of overflow-x: scroll container

后端 未结 4 1947
时光取名叫无心
时光取名叫无心 2021-01-18 05:58

I\'ve got a container element that\'s a certain width, with overflow-x: auto. In it I have a block level header element (h1) that\'s supposed to, being a block

4条回答
  •  暖寄归人
    2021-01-18 06:51

    Change this CSS code like the following then check and let me know if you want this:

    #one {
    width: 100%;
    overflow: auto;
    border: solid 1px;
    }
    

提交回复
热议问题