Giter Site home page Giter Site logo

hscroll's Introduction

hscroll

一款基于原生的js自定义滚动条组件,并且兼容低版本浏览器。兼容IE8

考虑到低版本浏览器无法使用伪元素等方式来进行调整滚动条样式,所以需要用原生的js来开发一款兼容低版本浏览器的区域性组件。

另外还有一个jquery版本,命名为hscroll-jquery.js.

工作原理

 4个区域,固定高度的显示区,不固定高度的内容区,滚动条容器区,滚动条 Image text

使用方法

  实例化构造函数,并传入四个区域的id值
  HScroll('sec01','sec02','sec03','sec04'); 
  query版本传参
  HScroll('#sec01','#sec02','#sec03','#sec04'); 
 

最终效果

 Image text

hscroll's People

Contributors

seehuang avatar

Stargazers

 avatar 光子 avatar 白水 avatar laughing avatar liugaolian avatar  avatar Will avatar  avatar  avatar haoht avatar Theme800 avatar  avatar  avatar qingyuanbb avatar BYECHEER avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

yangxin1994

hscroll's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.