margin-top in a nested div

前端 未结 6 1813
失恋的感觉
失恋的感觉 2020-12-04 21:52

I have a problem with the margin-top in a nested div -- when I apply margin-top to the nested div, the margin is applied to the parent div inst

6条回答
  •  醉梦人生
    2020-12-04 22:37

    You Can also use position property for inner div to fix this. like:

    position:fixed;
    

提交回复
热议问题