How to remove whitespace that appears after relative positioning an element with CSS

前端 未结 8 709
你的背包
你的背包 2020-12-08 02:33

The problem occurs is the following: After relative positioning an element with CSS I get a white-space of where the element was... I don\'t want the white-space!

8条回答
  •  一向
    一向 (楼主)
    2020-12-08 03:25

    You can solve this problem by giving float:left before position:relative. Use margin-left, margin-top properties instead of top, left also.

提交回复
热议问题