fixed/floating div element when scrolling

前端 未结 1 978
萌比男神i
萌比男神i 2021-01-03 02:52

I\'m trying to search for this on the web, but I\'m not sure what to look for exactly. I\'m trying to find out how to create a div element that will be fixed, or float ONLY

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-03 03:19

    I think I'm doing something similar to what you want to do. Try out the following code, put whatever you need in notification div and leave the anchor one alone.

    Edit: You should note, this requires you to include JQuery if that's not obvious to you.

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