How to set top position using jquery

后端 未结 5 657
一向
一向 2021-02-04 23:22

I am creating custom div scroller and want to set top position of content div. My jquery code is as below:

containerOuterHeight=$(\"#messagePopUpContainer\").out         


        
5条回答
  •  南方客
    南方客 (楼主)
    2021-02-04 23:51

    Accessing CSS property & manipulating is quite easy using .css(). For example, to change single property:

    $("selector").css('top', '50px');
    

提交回复
热议问题