DIV width and height wont resize when setting innerHTML?

前端 未结 1 358
南旧
南旧 2021-01-28 19:35

When I set an image to the innerHTML of a DIV container, the width and height of the DIV is still not changed. The div has border:solid style and the border is like

相关标签:
1条回答
  • 2021-01-28 20:17

    have you set the overflow css property of your div ?

    http://www.w3schools.com/Css/pr_pos_overflow.asp

    0 讨论(0)
提交回复
热议问题