一个移动端页面脚手架
CSS框架力求精简,只提供简单的结构支持,具体样式全由使用者决定。
要使用Slide Menu,你必须将你的页面内容用一个容器包住。Slide Menu的结构像下面这样:
<nav class="slide-menu right-slide-menu">
<!-- 菜单内容 -->
</nav>
<div class="has-slide-menu has-right-slide-menu">
<!-- 你的页面内容 -->
</div>
Javascript:
new SlideMenu({
trigger: '.menu' //触发Slide Menu的元素
})
侧边菜单显示的时候, 会在body上加.slide-menu-active的类名, 如果你的页面内容里有position是fixed的内容,这些内容的显示有不正确,你要自行指定这些内容的位置, 如:
.menu-active .a-fixed-position-div {
left: 294px;
}
Slide Menu支持左侧和右侧,上面的是右侧菜单,如果你要一个左侧的,把上面的right改成left就好。
- Modernizr
- WebP
- srcset
- video
- mock
- SPA
- CSS MODULE:FORM
mobile-starter's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.