Position absolute behaving like position fixed when adding dynamic HTML via javascript

前端 未结 3 1960
一整个雨季
一整个雨季 2020-12-11 21:18

Here\'s the code example I\'m having problems with:

http://jsfiddle.net/eejpjch3/

I\'m trying to add a dynamic delete button above HTML elements when hoverin

3条回答
  •  北海茫月
    2020-12-11 21:48

    You have not specified position:relative to parent element of the delete button

    you shoud add following class to your style sheet

    .row-fluid { 
    position: relative; 
    }
    

    Position absolute takes position with relative to its parents. for more reference you can check following link: http://www.w3schools.com/css/css_positioning.asp

提交回复
热议问题