本示例使用Javascript实现了滚动页面时,DIV到达顶部时固定在顶部。在IE下效果有点闪,效果网址:http://www.keleyi.com/keleyi/phtml/fixdiv.htm

下面是代码:

<body style="margin:0px;">
<div style="height:300px;background:#e0e0e0"></div>
<div >http://www.keleyi.com/a/bjac/5d7f4ac2efa72d30.htm

本文转自柯乐义:http://www.keleyi.com/a/bjac/ed5eb8c2959c619e.htm

相关文章:

  • 2021-07-11
  • 2021-09-06
  • 2022-12-23
  • 2021-06-12
  • 2021-10-20
  • 2021-07-15
  • 2022-02-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
相关资源
相似解决方案