码迷,mamicode.com
首页 > 其他好文 > 详细

悬浮框

时间:2015-06-06 11:48:01      阅读:88      评论:0      收藏:0      [点我收藏+]

标签:

1. 右侧底部悬浮框

运行效果图: [http://runjs.cn/code/zvjocat0]

要点:oDiv.style.top=document.documentElement.clientHeight-oDiv.offsetHeight+scrollTop;

 

2. 右侧中部悬浮框

运行效果图:[http://runjs.cn/code/bws1gmne]

要点: oDiv.style.top=Math.ceil((document.documentElement.clientHeight-oDiv.offHeight)/2+scrollTop);

悬浮框

标签:

原文地址:http://www.cnblogs.com/linxd/p/4556369.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!