开发者

Making floating div like jgrowl

开发者 https://www.devze.com 2023-01-26 04:39 出处:网络
I would like to do Floating DIV like JGrowl.The position is right bottom. The DIV must be stick that position whatever I scroll the page开发者_开发百科.

I would like to do Floating DIV like JGrowl.The position is right bottom. The DIV must be stick that position whatever I scroll the page开发者_开发百科.

Thanks


The CSS would be very simple for this. You can just do.

#growl {
    position: fixed;
    bottom: 5px;
    right: 5px;
    width: 200px;
    height: 200px;
}

You'd still have to worry about how different browsers handle it. I would just use the jgrowl plugin with the proper option set.


In JGrowl there is option position to control position on screen. Please check jGrowl Options listed on site

0

精彩评论

暂无评论...
验证码 换一张
取 消