Giter VIP home page Giter VIP logo

side-content's Introduction

Side-Content

V_0.3


简单,以标题链接侧边

how-to-use

  • 添加 js文件 side-content.js
<script src='side-content.js'></script>
</body>
  • 设置一个 sider ID 用来显示标题
<ul id='sider'>

	</ul>
  • 设置一个主内容 ID

例如side-content 可是自己设置

<div id='side-content'>
	<div id="side-1">你</div>
	<div id="side-2">是</div>
	//你想添加的标题 -- 前缀必须是 side-
</div>
var a = setSider('side-content'); //setSider('主内容ID');

//or

var a = setSider(); //默认 side-content

  • and done ,完成

tips: 视口的变化,会,影响准确性,主要是 高度,

show

side-content's People

Contributors

chinanf-boy avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.